diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 47c991f..75cebe9 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -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 @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml index 7c1d74f..e81d2f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]