-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (70 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
84 lines (70 loc) · 2.18 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "generate-database-sqdt"
dynamic = ["version"]
description = "Generate the SQDT databases for the pairinteraction package by using the RydState package."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.txt"]
requires-python = ">=3.10"
dependencies = [
"rydstate >= 0.9",
"pandas[pyarrow] >= 2.2.3",
"pairinteraction >= 2.1",
]
[tool.uv.sources]
rydstate = { path = "RydState", editable = true }
[project.optional-dependencies]
mypy = [
"mypy >= 1.14",
"pandas-stubs >= 2.2.3"
]
jupyter = [
"pip",
"ipykernel",
]
benchmark = [
"py-spy",
]
[dependency-groups]
dev = [
"generate-database-sqdt[mypy,jupyter,benchmark]",
"ruff",
]
[project.scripts]
generate_database = "generate_database_sqdt:main.main"
[tool.setuptools.dynamic]
version = {attr = "generate_database_sqdt.__version__"}
[tool.ruff]
line-length = 120
target-version = "py310"
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
# # FIXME: we should fix these in the future
"PLR0913", # Too many arguments in function definition (... > 5)
"D1", # FIXME: remove once more docstrings are added
"TRY003", # Avoid specifying long messages outside the exception class
"EM", # Exceptions ...
# We don't use the following rules
"COM812", # (missing-trailing-comma) incompatible with ruff format
"D203", # (incorrect-blank-line-before-class) incompatible with D211: no-blank-line-before-class
"D213", # (multi-line-summary-second-line) incompatible with D212: multi-line-summary-first-line
"SIM114", # Combine if branches using logical or operator; this breaks mypy, so we disable it for now
"TD", # Linting TODOs; we dont need this
"FIX", # Disallow TODOs, FIXMEs, etc.; enforcing this is a bit too strict
"E741", # Ambiguous variable name, does not like quantum number 'l'
"S608", # hardcoded-sql-expression
]
flake8-tidy-imports.ban-relative-imports = "all"
mccabe.max-complexity = 10
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
[tool.mypy]
strict = true
disallow_untyped_decorators = false
ignore_missing_imports = true