-
Notifications
You must be signed in to change notification settings - Fork 26
/
pyproject.toml
75 lines (68 loc) · 2.52 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
[build-system]
requires = ["setuptools>=65.0", "setuptools_scm[toml]>=7.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "TinyDFT"
authors = [
{ name="Toon Verstraelen", email="toon.verstraelen@ugent.be" },
]
description = "Minimalistic atomic DFT code."
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Environment :: Console",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Education :: Computer Aided Instruction (CAI)",
]
dependencies = [
# Ensure changes to these dependencies are reflected in .github/requirements-old.txt
"numpy>=1.23.5,<2.0.0",
"scipy>=1.11.1",
"matplotlib>=3.6.3",
"autograd>=1.2",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-regressions",
"pandas"
]
[project.scripts]
tinydft-demo-evn = "tinydft.demo_evn:main"
tinydft-demo-mendelejev = "tinydft.demo_mendelejev:main"
[tool.pytest.ini_options]
addopts = "-vv -W error --cov=src/tinydft --cov-report=term-missing -n auto"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"A", "B", "BLE", "C4", "E", "EXE", "F", "I", "ICN", "ISC", "N", "NPY", "PERF", "PIE",
"PL", "PT", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TRY", "UP", "W"
]
ignore = [
"ISC001", # https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/
"PLR0904", # https://docs.astral.sh/ruff/rules/too-many-public-methods/
"PLR0911", # https://docs.astral.sh/ruff/rules/too-many-return-statements/
"PLR0912", # https://docs.astral.sh/ruff/rules/too-many-branches/
"PLR0913", # https://docs.astral.sh/ruff/rules/too-many-arguments/
"PLR0914", # https://docs.astral.sh/ruff/rules/too-many-locals/
"PLR0915", # https://docs.astral.sh/ruff/rules/too-many-statements/
"PLR0916", # https://docs.astral.sh/ruff/rules/too-many-boolean-expressions/
"PLR0917", # https://docs.astral.sh/ruff/rules/too-many-positional/
"PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
"PT011", # https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/
"TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
]
[tool.setuptools_scm]
write_to = "src/tinydft/_version.py"
version_scheme = "post-release"
local_scheme = "no-local-version"