-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
56 lines (47 loc) · 1.33 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
[tool.poetry]
name = "atomic_physics"
version = "1.0.3"
description = "Nascent toolkit for calculating state energies, transition matrix elements, rate equations, obe solver, etc"
authors = ["hartytp <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.10,<3.11"
numpy = "^1.22.0"
scipy = "^1.7.3"
[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
poethepoet = "^0.12.1"
sympy = "^1.9"
ruff = "^0.7.3"
matplotlib = "^3.5.1"
pytype = {version = "^2022.4.15", markers = "os_name == 'posix'"}
sphinx = "^6.0"
sphinx-rtd-theme = "^1.2.0"
sphinx-mdinclude = "^0.5.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
test = "pytest -Werror"
fmt-test = "ruff format --check ."
fmt = "ruff format"
lint = "ruff check"
types = { script = "run_pytype:main" }
docs = { cwd = "./docs", cmd = "make html doctest" }
docs-clean = { cwd = "./docs", cmd = "make clean" }
[tool.ruff]
exclude = [
".git",
"__pycache__",
".venv",
]
indent-width = 4
line-length = 88
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
# Allow unused imports in __init__ files for re-exporting
"__init__.py" = ["F401"]
[tool.ruff.lint]
# Sort imports
extend-select = ["I"]
[tool.pytest.ini_options]
testpaths = ["atomic_physics/tests"]