-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
27 lines (23 loc) · 1022 Bytes
/
Copy pathpyproject.toml
File metadata and controls
27 lines (23 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[tool.ruff]
target-version = "py310"
line-length = 110
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.ruff.lint.per-file-ignores]
"i18n/ja.py" = ["E501"] # translation string literals; wrapping would corrupt keys/values
[tool.mypy]
python_version = "3.10"
files = ["foam", "model", "app_config", "schemas", "services", "ui"]
ignore_missing_imports = true
warn_unused_ignores = true
# numpy 2.5's bundled stubs use PEP 695 `type` statements, which are only valid
# syntax under python_version >= 3.12; this project's mypy target is 3.10 (the
# minimum supported runtime per CLAUDE.md). Skip following numpy's own stubs
# (follow_imports_for_stubs is needed alongside follow_imports=skip because
# numpy ships inline/typed stubs, not a separate stub-only package, and mypy
# only honours plain follow_imports for the latter) rather than raising the
# whole project's target version for one dependency.
[[tool.mypy.overrides]]
module = ["numpy", "numpy.*"]
follow_imports = "skip"
follow_imports_for_stubs = true