Skip to content

Commit

Permalink
refactor: define static checks as poe tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaitz committed Feb 19, 2025
1 parent 0625a57 commit d989837
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
lint_command:
- poe lint
- pip-audit
- creosote
- zizmor .github/workflows/
check_command:
- lint
- check_vulnerable_dependencies
- check_unused_dependencies
- check_githubactions
steps:
- name: Acquire sources
uses: actions/checkout@v4
Expand All @@ -37,4 +37,4 @@ jobs:
- uses: astral-sh/setup-uv@v5

- name: Run code-style checks
run: uv run ${{ matrix.lint_command }}
run: uv run poe ${{ matrix.check_command }}
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ format = [

type = "mypy --ignore-missing-imports --strict bquest"

check_vulnerable_dependencies = "pip-audit"
check_unused_dependencies = "creosote"
check_githubactions = "zizmor .github/workflows/"


test_unit = "pytest -m unit"
test_integration = "pytest -m integration"
test = ["test_unit", "test_integration"]
Expand Down

0 comments on commit d989837

Please sign in to comment.