Skip to content

Commit

Permalink
Simplified linting in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
tofran committed Sep 7, 2022
1 parent 819ac5c commit 71a1204
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run flake8
uses: julianwachholz/flake8-action@v2

- name: Run pycodesty (Linter)
uses: andymckay/pycodestyle-action@0.1.3
- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Run mypy
uses: jpetrucciani/mypy-check@master
- name: Lint
run: |
set -e
pip install -r requirements.dev.txt
pycodestyle .
flake8 .
mypy .
publish:
name: Publish
Expand All @@ -40,10 +43,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: '3.9'

- name: Install dependencies
run: |
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# https://github.com/saleor/saleor/blob/main/setup.cfg

[flake8]
exclude =
.*/,
__pycache__/,
exclude = .*/,__pycache__/,
ignore = H101, H238, H301, H306, W503
max-complexity = 31
max-line-length = 88

[pydocstyle]
ignore = D100, D101, D102, D103, D104, D105, D106, D107, D203, D213, D407, D202
inherit = false
exclude = .*/,__pycache__,.tox,./env

[mypy]
ignore_missing_imports = True
Expand Down

0 comments on commit 71a1204

Please sign in to comment.