-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
135 lines (113 loc) · 3.19 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["setuptools",
"setuptools_scm",
"wheel",
"extension-helpers",
"oldest-supported-numpy",
"cython>=0.29.15"]
build-backend = 'setuptools.build_meta'
[project]
name = "astrodbkit"
description = "Astronomical database handler code"
dynamic = ["version"]
readme = {file = "README.rst", content-type = "text/x-rst"}
# license = {file = "licenses/LICENSE.rst"}
license = {text = "BSD 3-Clause"}
authors = [
{name = "David Rodriguez", email = "[email protected]"},
]
requires-python = ">= 3.11"
dependencies = [
"astropy>7.0",
"astroquery>=0.4.9",
"sqlalchemy>=2.0.38",
"pandas>=1.0.4",
"packaging",
"specutils>=1.0",
"tqdm",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-astropy",
"darker>=1.7.2",
"black>=23.9.1",
"pre-commit>=3.4.0",
"ruff>=0.3.7",
]
docs = [
"sphinx-astropy"
]
felis = [
"lsst-felis"
]
all = ["astrodbkit[test, docs, felis]"]
[project.urls]
Repository = "https://github.com/astrodbtoolkit/AstrodbKit"
[tool.setuptools]
packages = ["astrodbkit"]
[tool.setuptools.dynamic]
version = {attr = "astrodbkit.__version__"}
[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools_scm
version_file = "astrodbkit/version.py"
[tool.pytest.ini_options]
testpaths = "astrodbkit"
[tool.coverage.run]
omit = [
"astrodbkit/_astropy_init*",
"astrodbkit/conftest.py",
"astrodbkit/*setup_package*",
"astrodbkit/tests/*",
"astrodbkit/*/tests/*",
"astrodbkit/extern/*",
"astrodbkit/version*",
"*/astrodbkit/_astropy_init*",
"*/astrodbkit/conftest.py",
"*/astrodbkit/*setup_package*",
"*/astrodbkit/tests/*",
"*/astrodbkit/*/tests/*",
"*/astrodbkit/extern/*",
"*/astrodbkit/version*",
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about packages we have installed
"except ImportError",
# Don't complain if tests don't hit assertions
"raise AssertionError",
"raise NotImplementedError",
# Don't complain about script hooks
"def main\\(.*\\):",
# Ignore branches that don't pertain to this version of Python
"pragma: py{ignore_python_version}",
# Don't complain about IPython completion helper
"def _ipython_key_completions_",
]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
# See https://docs.astral.sh/ruff/rules/
select = ["E4", "E7", "E9", "F", "I", "PL", "C901", "RUF010"]
#select = ["ALL"]
ignore = ["PLR", # pylint refactor
"F403", # star imports used
"F405", # referring to import from star imports
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff]
line-length = 120
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 15.
max-complexity = 15
[tool.darker]
line-length = 120
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311"]