-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (47 loc) · 1.26 KB
/
Copy pathpyproject.toml
File metadata and controls
56 lines (47 loc) · 1.26 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "foresight"
version = "1.0.0"
requires-python = ">=3.11"
[project.optional-dependencies]
dev = [
"pytest>=8.0,<9.0",
"pytest-cov>=4.0,<6.0",
"ruff>=0.3.0,<1.0.0",
"mypy>=1.10,<2.0",
"pre-commit>=4.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP"]
# Ignored rules (see Makefile/CI history):
# E501 line too long — handled by `ruff format`
# F401 unused import — re-exports / __init__ convenience imports
# N803 arg name lowercase — domain naming (e.g. mixedCase from data schema)
# N806 var name uppercase — constants derived from runtime config
ignore = ["E501", "F401", "N803", "N806"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source = ["foresight"]
branch = true
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
fail_under = 20
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
warn_unused_configs = true
warn_redundant_casts = true