-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
153 lines (138 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "sdssdb"
version = "0.13.2a0"
authors = [
{name = "José Sánchez-Gallego", email = "[email protected]"},
{name = "Brian Cherinka", email = "[email protected]"}
]
description = "SDSS product for database management"
keywords = ["astronomy", "software", "database"]
license = {text = "BSD 3-Clause License"}
requires-python = ">=3.6"
dependencies = [
"pgpasslib>=1.1.0",
"psycopg2-binary>=2.7.7",
"peewee>=3.17.6",
"sqlalchemy>=1.3.6,<2",
'sdsstools>=1.7.0; python_version >= "3.8"',
'sdsstools>=0.1.0,<1.0.0; python_version < "3.8"',
"numpy>=1.18.2",
]
[project.urls]
Homepage = "https://github.com/sdss/sdssdb"
Repository = "https://github.com/sdss/sdssdb"
Documentation = "https://sdssdb.readthedocs.org"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
all = [
"psycopg[binary]",
"progressbar2>=3.46.1",
"pydot>=1.4.1",
"astropy>=4.0.0",
"pandas>=1.0.0",
"inflect>=4.1.0",
"h5py>=3.8.0",
"sdssdb[dev]",
"sdssdb[docs]"
]
dev = [
"pytest>=5.2",
"pytest-cov>=2.4.0",
"pytest-sugar>=0.8.0",
"ipython>=7.13.0",
"ipdb>=0.13.2",
"pytest-postgresql>=2.2.1,<6",
"factory_boy>=2.12.0",
"pytest-factoryboy>=2.0.3",
"astropy>=4.0.0",
"pydot>=1.4.2",
"pyyaml>=5.1",
"ruff>=0.6.3",
"flake8>=7.1.1",
"flake8-pyproject>=1.2.3"
]
docs = [
"Sphinx>=7.0.0",
"sphinx_bootstrap_theme>=0.4.12",
"releases>=2.0.0",
]
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
package-dir = {"" = "python"}
license-files = ["LICENSE.md"]
include-package-data = false
[tool.setuptools.packages.find]
where = ["python"]
exclude = ["*.tests"]
namespaces = false
[tool.setuptools.package-data]
sdssdb = ["etc/*"]
[tool.isort]
line_length = 79
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"SQLA",
"PEEWEE",
"SDSS",
"FIRSTPARTY",
"LOCALFOLDER",
]
default_section = "THIRDPARTY"
known_first_party = ["sdssdb"]
known_sqla = ["sqlalchemy"]
known_peewee = [
"peewee",
"playhouse",
]
known_sdss = ["sdsstools"]
balanced_wrapping = true
include_trailing_comma = false
lines_after_imports = 2
use_parentheses = true
[tool.flake8]
ignore = [
"H101",
"E722",
"W503",
"W504",
"W505",
"E116",
"E114"
]
max-line-length = 99
exclude = [
"python/sdssdb/sqlalchemy/operationsdb/tools",
"python/sdssdb/sqlalchemy/archive",
"python/sdssdb/sqlalchemy/mangadb"
]
[tool.ruff]
line-length = 99
target-version = 'py312'
exclude = ["typings/"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
exclude = [
"python/sdssdb/sqlalchemy/operationsdb/**/*.py",
"python/sdssdb/sqlalchemy/archive/*.py",
"python/sdssdb/sqlalchemy/mangadb/*.py"
]
[tool.ruff.lint.isort]
known-first-party = ["sdssdb"]
lines-after-imports = 2
section-order = ["future", "standard-library", "typing", "third-party", "sqla", "peewee", "sdss", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
typing = ["typing"]
sdss = ["sdsstools"]
sqla = ["sqlalchemy"]
peewee = ["peewee", "playhouse"]
[tool.ruff.format]
preview = true
[tool.coverage.run]
branch = true