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
2 changes: 1 addition & 1 deletion project_name/.github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: List packages
run: uv pip list
- name: Run mypy
run: uv run --no-sync mypy --num-workers "$(nproc)"
run: uv run --no-sync mypy --num-workers auto

dependencies:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions project_name/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ docs = [
"mkdocs-section-index ~=0.3.0",
]
typing = [
"mypy ~=2.3.0",
"mypy ~=2.4.0",
"ty ~=0.0",
# add "*-stubs" and "types-*" packages here (">=0")
]
Expand Down Expand Up @@ -186,15 +186,15 @@ src.include = [
[tool.mypy]
files = ["src", "tests"]
mypy_path = "stubs"
fixed_format_cache = true
# set the platform
python_version = "3.{{ python_min }}"
# enable checks [last updated: mypy 2.3]
# enable checks [last updated: mypy 2.4]
strict = true
strict_equality_for_none = true
disallow_any_unimported = true
warn_unreachable = true
disallow_any_explicit = true
warn_unused_configs = true
enable_error_code = [
# from https://mypy.readthedocs.io/en/stable/error_code_list2.html
"redundant-self",
Expand Down
Loading