Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/check-fmt.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/check-lint.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Type check
name: Code quality check
on:
push:
branches: ['main']
pull_request:

jobs:
mypy-check:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -17,6 +17,9 @@ jobs:
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run mypy
run: |
poetry run mypy rezervo
- name: Check formatting
run: poetry run poe fmtcheck
- name: Check linting
run: poetry run poe lint
- name: Check types
run: poetry run poe typecheck
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ ignore_fail = "return_non_zero"
cmd = "black rezervo"
help = "Format code using black"

[tool.poe.tasks.fmtcheck]
cmd = "black --check rezervo"
help = "Check formatting using black"

[tool.poe.tasks.lintfix]
cmd = "ruff check rezervo --fix"
help = "Lint and fix code using ruff"
Expand Down
Loading