diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6f1410e6..a4159929 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -88,6 +88,17 @@ jobs: poetry-version: ${{ env.POETRY_VERSION }} - run: poetry run poe lint + lint-imports: + needs: [ poetry-lock ] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup-python-and-dependencies + with: + python-version: ${{ env.PYTHON_VERSION }} + poetry-version: ${{ env.POETRY_VERSION }} + - run: poetry run poe lint-imports + mypy: needs: [poetry-lock] runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 458b9b89..be63abb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ jsonschema-markdown = "^0.3.18" [tool.poe.tasks] lint = "ruff check" lint-fix = "ruff check --fix-only" +lint-imports = "lint-imports" format = "ruff format" format-check = "ruff format --check --diff" typecheck = "mypy tests/ abis_mapping/ docs/ scripts/"