-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (53 loc) · 1.79 KB
/
pyproject.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
[tool.poetry]
name = "quantio"
version = "0.19.2"
description = "Type hinting and safe unit conversion for physical quantities in Python."
authors = []
readme = "README.md"
repository = "https://github.com/unexcellent/quantio"
[tool.poetry.dependencies]
python = ">=3.10, <3.14"
numpy = "^2.1.3"
[tool.poetry.group.dev.dependencies]
mypy-extensions = "<2.0"
ruff = "<1.0"
[tool.poetry.group.test.dependencies]
pytest = "<9.0"
pytest_benchmark = "<6.0"
[tool.ruff]
exclude = ["sandbox/*"]
line-length = 101
[tool.ruff.lint]
exclude = ["benchmarking/*", "generate/*", "test/*"]
select = ["ALL"]
ignore = [
"COM812", # conflicts with ruff formatter
"D100", # imo no docstrings are necessary in public modules
"D107", # __init__ docstrings are not necessary
"D203", # incompatible with D211
"D213", # incompatible with D212
"ISC001", # conflicts with ruff formatter
"N802", # interferes with setting constant abstract properties
"PGH003", # necessary for _QuantityBase.__eq__()
"PLR0913", # many arguments are necessary for the quantities to enable enough different units
"RUF012", # does not work with constants
"TCH001", # adds hard to understand compexity without providing a benefit for smaller projects
"TCH002", # same as TCH001
"TCH003", # same as TCH001
"SIM103", # less readable in some cases imo
"SLF001", # necessary for vector operations
]
[tool.mypy]
check_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unreachable = true
python_version = "3.12"
ignore_missing_imports = true
disable_error_code = ["call-arg"]
[tool.pytest.ini_options]
python_functions = ["test_*", "bench_*"]
python_files = ["test_*.py"]
testpaths = ["test", "benchmarking"]
xfail_strict = true