-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
113 lines (100 loc) · 2.57 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
[project]
name = "empdens"
version = "1.4.5"
description = "Empirical density estimation"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"lightgbm >=2.2.3",
"matplotlib >=3.0.3",
"pandahandler>=0.4.0",
"pandas >=0.24.2",
"psutil>=6.1.0",
"scikit-learn >=0.20.3",
"shmistogram>=1.0.0",
"typing-extensions>=4.12.2",
]
[dependency-groups]
dev = [
"pre-commit >=3.8.0",
"pyright >=1.1.378",
"ruff >=0.7.4",
"pytest >=8.3.2",
"jupyter>=1.1.1",
"ipykernel>=6.29.5",
"bump-my-version>=0.32.2",
]
extras = [
"astropy>=6.1.7",
"fastkde>=2.1.3",
"xgboost>=2.1.3",
]
[tool.uv]
package = true
[tool.bumpversion]
current_version = "1.4.5"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
moveable_tags = []
commit_args = "--no-verify"
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []
[[tool.bumpversion.files]]
filename = "pyproject.toml"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
include = [
"empdens/resources/data/*",
"empdens/**/*.py",
]
[tool.hatch.build.targets.wheel]
ignore-vcs = true
packages = ["empdens"]
include = [
"empdens/resources/data/*",
]
[tool.pytest.ini_options]
testpaths = ["tests",]
[tool.pyright]
include = ["empdens", "tests"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
# ruff defaults:
"E4", "E7", "E9", "F",
# pycodestyle line formatting including line length
"E5",
# additional rule groups:
"I", # flake8-import-order
"TID", # flake8-tidy-imports
"D", # google-style docstrings
]
ignore = [
"D202", # would require one blank line after the last section of a multi-line docstring
"D203", # would require one blank line at start of class docstring
"D213", # would require multi-line docstring to start with a hard return
"D401", # would require imperative mood in docstring
"D413", # would put blank line at end of each multiline docstring
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104"] # would require module-level documentation
"test_*.py" = ["D"] # would put requirements on docstrings in test files