-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (110 loc) · 2.25 KB
/
pyproject.toml
File metadata and controls
122 lines (110 loc) · 2.25 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sober"
version = "0.4.0"
description = "sober optimises built environment robustly"
authors = [{ name = "Cheng Cui", email = "cheng.cui.95@gmail.com" }]
license = "BSD-3-Clause"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"eppy~=0.5.63",
"numpy==2.*",
"psutil==6.*",
"pymoo~=0.6.1",
"scipy~=1.13",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
[project.urls]
repository = "https://github.com/airallergy/sober"
documentation = "https://airallergy.github.io/sober/"
[dependency-groups]
dev = [
"mkdocs-material==9.*",
"mkdocstrings[python]==0.30.*",
"mypy~=1.12",
"pytest-cov==5.*",
"pytest==8.*",
"ruff==0.11.*",
]
[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]
files = ["sober", "tests"]
namespace_packages = false
enable_incomplete_feature = ["PreciseTupleTypes"]
ignore_missing_imports = true
strict = true
[tool.pytest.ini_options]
addopts = "--cov=sober"
testpaths = ["tests"]