Skip to content

Commit

Permalink
BDRSPS-1127 Add import-linter to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln-GR committed Jan 6, 2025
1 parent 487d2d9 commit d4385fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit d4385fa

Please sign in to comment.