-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (89 loc) · 1.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sober"
version = "0.2.2"
description = "sober optimises built environment robustly"
authors = [{ name = "Cheng Cui", email = "[email protected]" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"eppy~=0.5.63",
"numpy==2.*",
"psutil==6.*",
"pymoo~=0.6.1",
"scipy~=1.13",
]
[project.urls]
homepage = "https://github.com/airallergy/sober"
repository = "https://github.com/airallergy/sober"
[dependency-groups]
dev = ["mypy~=1.12", "pytest-cov==5.*", "pytest==8.*", "ruff==0.8.*"]
[tool.ruff.lint]
select = [
"B",
"C4",
"D",
"E",
"F",
"FLY",
"FURB",
"I",
"ISC",
"LOG",
"N",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PYI",
"RET",
"RUF",
"SIM",
"SLOT",
"T20",
"TC",
"TID",
"TRY",
"UP",
"YTT",
]
# consider removing:
# - E501: long line
# - PLR0912: too many branches
# - PLR2004: magic number
# - PLW0603: use global
# - TRY003: long raise message
ignore = [
"E266",
"E501",
"E741",
"PLR0912",
"PLR0913",
"PLR2004",
"PLW0603",
"RET505",
"RUF023",
"TRY003",
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"]
[tool.ruff.format]
line-ending = "lf"
skip-magic-trailing-comma = true
[tool.mypy]
enable_incomplete_feature = ["PreciseTupleTypes"]
ignore_missing_imports = true
strict = true
[tool.pytest.ini_options]
addopts = "--cov=sober"
testpaths = ["tests"]