Skip to content

Commit

Permalink
Run typechecker on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Aug 6, 2024
1 parent 9bfeb5b commit dd975f8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ jobs:

- name: Run linter
run: flake8 ./src

typechecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y python3 python3-pip

- name: Run build
run: pip3 install .[dev]

- name: Run typechecker
run: mypy
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ markers = [
"overnight: for tests that take hours to complete (deselect with '-m \"not overnight\"')",
"serial"
]

[tool.mypy]
files = ["src"]
ignore_missing_imports = true
strict_optional = true
allow_untyped_calls = false
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = false
strict = true

0 comments on commit dd975f8

Please sign in to comment.