-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (78 loc) · 2.93 KB
/
pyproject.toml
File metadata and controls
86 lines (78 loc) · 2.93 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
# SPDX-FileCopyrightText: © 2023 Tiny DFT Development Team <https://github.com/molmod/acid/blob/main/AUTHORS.md>
# SPDX-License-Identifier: GPL-3.0-or-later
[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"
license = "GPL-3.0-or-later"
requires-python = ">=3.10"
classifiers = [
"Environment :: Console",
"Intended Audience :: Education",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Education :: Computer Aided Instruction (CAI)",
]
dependencies = [
# Ensure changes to these dependencies are reflected in .github/requirements-old.txt
"numpy>=2.2.6",
"scipy>=1.15.3",
"matplotlib>=3.6.3",
"autograd>=1.8.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"py-cpuinfo",
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-regressions",
"pandas",
"reuse",
]
[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 = "py310"
[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"