From 4a7d7ec92c4d3de0a7b98d911f9d2fef297b4faf Mon Sep 17 00:00:00 2001 From: Alif Be Date: Wed, 27 Sep 2023 09:53:20 +0200 Subject: [PATCH 1/2] Run CI without fail-fast --- .github/workflows/pyscal.yml | 17 ++++++++++++++++- setup.cfg | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) 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/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 From 20a04d016c997db48f415a61939ae756926a8646 Mon Sep 17 00:00:00 2001 From: Alif Be Date: Wed, 27 Sep 2023 12:35:17 +0200 Subject: [PATCH 2/2] Skip isort on pyscal/__init__.py --- pyscal/__init__.py | 1 + 1 file changed, 1 insertion(+) 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