generated from neutrons/python_project_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (56 loc) · 1.94 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
[project]
name = "garnet"
description = "The Single Crystal Graphical Advanced Reduction Neutron Event Toolkit Project"
dynamic = ["version", "dependencies", "optional-dependencies"]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "GPL-3.0" }
[project.urls]
homepage = "https://github.com/neutrons/garnet/"
[build-system]
requires = ["setuptools", "wheel", "toml", "versioningit"]
build-backend = "setuptools.build_meta"
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.0"
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
[tool.versioningit.write]
file = "src/garnet/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*", "scripts*", "docs*", "notebooks*"]
[tool.setuptools.package-data]
"*" = ["*.yml","*.yaml","*.ini"]
[project.gui-scripts]
garnet = "garnet.garnet:gui"
[tool.pytest.ini_options]
pythonpath = ["src", "scripts"]
testpaths = ["tests"]
python_files = ["test*.py"]
norecursedirs = [".git", "tmp*", "_tmp*", "__pycache__", "*dataset*", "*data_set*"]
markers = [
"datarepo: Tests that require the test-data submodule"
]
[tool.coverage.report]
exclude_lines = [
"except ImportError:",
"except ModuleNotFoundError:",
]
[tool.ruff]
line-length = 119
[tool.ruff.lint]
# https://beta.ruff.rs/docs/rules/
# suggestions: BLE blind exceptions, I sorts imports
# Full pylint PL = PLC, PLE, PLR (~500 issues), PLW. Enable most
select = ["A", "ARG", "E", "F", "W", "PL", "C90", "I", "N", "D", "UP032", "ANN", "ASYNC",
"S303", "S307", "S308", "BLE", "B015", "B021", "PIE", "T20", "SIM", "PT"]
ignore = ["D203", # conflict with D211
"D213", # conflict with D212
"D400", "D415", "ANN201", # Unnecessary
]
exclude = ["src/garnet/helpers/__init__.py", "src/garnet/helpers/ui_elements/__init__.py"]