[79668b]: / .github / workflows / format.yml

Download this file

46 lines (33 with data), 810 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: formatting-linting
on:
pull_request:
branches:
- main
jobs:
check-formatting-linting:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Install dependencies
run: poetry install
- name: black
run: python -m black . --check
- name: isort
run: python -m isort . -c
- name: docformatter
run: python -m docformatter . --check
- name: flake8
run: python -m flake8 .
- name: pylint
run: python -m pylint deduce/