generated from spacetelescope/stsci-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (103 loc) · 2.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["setuptools>=61.2",
"setuptools_scm[toml]>=3.4.3",
"wheel"]
build-backend = 'setuptools.build_meta'
[project]
name = "packagename"
description = "Package description"
authors = [{name = "STScI", email = "[email protected]"}]
license = {file = "LICENSE.rst"}
dynamic = ["version"]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.24",
"astropy>=5.2",
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics"
]
readme = "README.rst"
[project.optional-dependencies]
test = [
"ruff",
"pytest",
"pytest-astropy",
"pytest-coverage",
"pytest-mock"
]
docs = [
"graphviz",
"stsci_rtd_theme",
"sphinx-astropy",
"sphinx_rtd_theme",
"sphinx-automodapi",
"sphinx-issues",
"tomli"
]
[project.scripts]
packagename_script = "packagename.example_mod:main"
[project.urls]
Homepage = "https://github.com/spacetelescope/packagename"
[tool.setuptools.package-data]
"*" = ["*.fits, *.csv"]
"packagename" = ["data/*"]
"packagename.tests" = ["data/*"]
[tool.setuptools_scm]
write_to = "packagename/version.py"
[tool.pytest.ini_options]
minversion = "2.2"
testpaths = [
"packagename/tests",
]
norecursedirs = [
"build",
"docs/_build"
]
astropy_header = "true"
doctest_plus = "enabled"
text_file_format = "rst"
addopts = "-p no:warnings"
[tool.coverage.run]
source = ["packagename",]
omit = [
"packagename/tests/*",
"packagename/version*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"except ImportError",
"raise AssertionError",
"raise NotImplementedError",
"def main(.*):",
"pragma: py{ignore_python_version}",
]
omit = [
"packagename/tests/*",
"packagename/version*",
]
[tool.ruff]
line-length = 88
select = ["ALL"]
ignore =[
"ANN", "S", "BLE", "SLF", "PERF",
"PLR0913", "SIM108", "D100", "D104", "COM812"
]
exclude = [
"version.py",
"conf.py"
]
[tool.ruff.per-file-ignores]
"*test*.py" = ["D101", "D102", "D103"]
"__init__.py" = ["F403"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true