-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (77 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (77 loc) · 2.41 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
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "simses"
dynamic = ["version"]
description = "Simulation of Scalable Energy Storage Systems "
readme = "README.md"
license = "BSD-3-Clause"
classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.12"
dependencies = [
"numpy",
"pandas>=2.2.3",
"scipy",
]
[project.optional-dependencies]
notebooks = [
"jupyter>=1.1.1",
"matplotlib>=3.10.0",
"tqdm>=4.67.1",
]
[dependency-groups]
dev = [
"codespell>=2.3",
"pytest>=9.0.2",
"ruff>=0.7.4",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.25",
"mkdocs-jupyter>=0.25",
"pymdown-extensions>=10.0",
"simses[notebooks]",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"simses" = ["**/*.csv"]
[tool.setuptools_scm]
version_file = "src/simses/_version.py"
[tool.pytest.ini_options]
# Make `examples/` importable in tests so example scripts can be used
# as smoke tests (e.g. `from examples.logging import simulate`).
pythonpath = ["."]
[tool.codespell]
# Skip build artefacts, virtualenvs, caches, lockfiles, and non-text data.
skip = "./site,./.venv,./.ruff_cache,./.pytest_cache,./build,./dist,./src/simses.egg-info,*.lock,*.csv"
# Add comma-separated words here if codespell ever false-positives on a valid identifier.
ignore-words-list = "MAPE"
[tool.ruff]
# Allow lines to be as long as 120.
line-length = 120
[tool.ruff.format]
preview = true
[tool.ruff.lint]
select = [
"A", # flake8-builtins: Check for Python builtins being used as variables or parameters
"B", # flake8-bugbear: Find likely bugs and design problems
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes: Detect various errors by parsing the source file
"I", # isort: Check and enforce import ordering
"ISC", # flake8-implicit-str-concat: Check for implicit string concatenation
"TID", # flake8-tidy-imports: Validate import hygiene
"UP", # pyupgrade: Automatically upgrade syntax for newer versions of Python
"SLF001", # flake8-string-format: Check for private object name access
]
ignore = [
"E501", # line-length violations
"E741", # ambiguous variable name
]