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
8 changes: 7 additions & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
quality:
name: Black and Pylint
name: Black, Pylint, Mypy, and Pyright
runs-on: ubuntu-latest

steps:
Expand All @@ -32,6 +32,12 @@ jobs:
- name: Lint with Pylint
run: pylint src tests

- name: Typecheck with Mypy
run: mypy src

- name: Typecheck with Pyright
run: pyright src
Comment thread
rads-1996 marked this conversation as resolved.

tests:
name: Pytest (${{ matrix.python-version }})
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ test = [
dev = [
"black>=24.0",
"pylint>=3.3",
"mypy>=1.10",
"pyright>=1.1",
"pytest>=8.0",
]

Expand All @@ -42,5 +44,15 @@ disable = [
"missing-module-docstring",
]

[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "basic"
Comment thread
rads-1996 marked this conversation as resolved.
Loading