diff --git a/.github/workflows/pyscal.yml b/.github/workflows/pyscal.yml index b0254e57..cb8eb67e 100644 --- a/.github/workflows/pyscal.yml +++ b/.github/workflows/pyscal.yml @@ -41,18 +41,33 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install pyscal with dependencies + if: ${{ always() }} run: | pip install --upgrade pip pip install .[tests] - name: List all installed packages + if: ${{ always() }} run: pip freeze - - name: Check code style and typing + - name: Lint with black + if: ${{ always() }} run: | black --check --force-exclude="pyscal/version.py" pyscal/*py tests/test_*py setup.py docs/conf.py + + - name: Lint with flake8 + if: ${{ always() }} + run: | flake8 pyscal tests + + - name: Lint with isort + if: ${{ always() }} + run: | isort --check-only --profile black pyscal tests + + - name: Check typing with mypy + if: ${{ always() }} + run: | mypy pyscal - name: Run tests diff --git a/pyscal/__init__.py b/pyscal/__init__.py index f4557bc6..0c3f0bb7 100644 --- a/pyscal/__init__.py +++ b/pyscal/__init__.py @@ -1,4 +1,5 @@ """pyscal""" +# isort: skip_file import logging import sys diff --git a/setup.cfg b/setup.cfg index 9edfb97c..6b09e7e7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ universal = 1 test=pytest [flake8] -exclude = docs, pyscal/__init__.py +exclude = docs, pyscal/__init__.py, pyscal/version.py max-line-length = 88 ignore = E741, W503, E203 # E203: "whitespace before ':'", added due to conflict with black