-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
114 lines (82 loc) · 2.22 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[tool.poetry]
name = "hamilflow"
version = "0.1.0"
description = "Dataset of simple physical systems."
authors = ["LM <[email protected]>", "cmp0xff <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{include = "hamilflow"}]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
# data
pandas = {version = "^2.2.2", extras = ["computation"]}
pydantic = "^2.8.2"
# numerics
numpy = "^2.1.0"
scipy = "^1.14.1"
# logging
loguru = "^0.7.2"
[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.5.31"
mkdocs-autorefs = "^1.0.1"
mkdocstrings = {version = "^0.25.2", extras = ["python"]}
mkdocs-jupyter = "^0.24.8"
mkdocs = "^1.6.0"
jupytext = "^1.16.4"
[tool.poetry.group.tutorial.dependencies]
plotly = "^5.23.0"
[tool.poetry.group.dev.dependencies]
commitizen = "*"
pre-commit = "*"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
changelog_file = "docs/changelog.md"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.ruff]
line-length = 88 # black default
target-version = "py310"
# unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D107", # undocumented-public-init: we document the class instead
"E501", # line-too-long: we use black instead
"TID252", # relative-imports
"PD901", # pandas-df-variable-name
"FBT",
"FIX",
"TD",
"RET",
]
[tool.ruff.lint.per-file-ignores]
"docs/**/*.py" = [
"D100", # undocumented-public-module: we keep tutorials clean and do not include doc strings
"ERA001", # commented-out-code: text cells
"INP001", # implicit-namespace-package: tutorials are not packages
]
"tests/**/*.py" = [
"S101", # assert: Fine in tests
"SLF001", # private-member-access: find in tests
]
[tool.ruff.lint.isort]
known-first-party = ["hamilflow"]
[tool.black]
line-length = 88 # black default
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = ["plotly.*", "scipy.*"]
ignore_missing_imports = true