-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (106 loc) · 2.76 KB
/
pyproject.toml
File metadata and controls
116 lines (106 loc) · 2.76 KB
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
[project]
name = "hats-tap"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = "README.md"
authors = [
{ name = "LINCC Frameworks", email = "lincc-frameworks-team@lists.lsst.org" }
]
description = "TAP(Table Access Protocol) server prototype for HATS data, queried using LSDB."
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
]
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = [
"Flask>=2.0.0",
"lsdb>=0.6.0",
"pandas",
"pyvo>=1.4",
"queryparser-python3",
]
[project.urls]
"Source Code" = "https://github.com/astronomy-commons/hats-tap"
[project.scripts]
tap-server = "hats_tap.tap_server:main"
import-tap-schema = "hats_tap.import_tap_schema:main"
adql-to-lsdb = "hats_tap.adql_to_lsdb:main"
# On a mac, install optional dependencies with `pip install '.[dev]'` (include the single quotes)
[project.optional-dependencies]
dev = [
"asv[virtualenv]==0.6.5", # Used to compute performance benchmarks
"jupyter", # Clears output from Jupyter notebooks
"pre-commit", # Used to run checks before finalizing a git commit
"pytest",
"pytest-cov", # Used to report total code coverage
"ruff", # Used for static linting of files
]
server = [
"gunicorn>=22.0.0", # Optional WSGI server for production use
]
[build-system]
requires = [
"setuptools>=62", # Used to build and package the Python project
"setuptools_scm>=6.2", # Gets release version from git. Makes it available programmatically
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/hats_tap/_version.py"
[tool.pytest.ini_options]
testpaths = [
"tests",
"src",
"docs",
]
pythonpath = ["src"]
addopts = "--doctest-modules --doctest-glob=*.rst"
[tool.ruff]
line-length = 110
[tool.ruff.lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pep8-naming
"N",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# docstrings
"D101",
"D102",
"D103",
"D106",
"D206",
"D207",
"D208",
"D300",
"D417",
"D419",
# Numpy v2.0 compatibility
"NPY201",
]
ignore = [
"UP006", # Allow non standard library generics in type hints
"UP007", # Allow Union in type hints
"SIM114", # Allow if with same arms
"B028", # Allow default warning level
"SIM117", # Allow nested with
"UP015", # Allow redundant open parameters
"UP028", # Allow yield in for loop
]
[tool.ruff.lint.per-file-ignores]
"src/hats_tap/adql_to_lsdb.py" = ["N802"] # Must use camel-case to extend the parser
[tool.coverage.run]
omit=["src/hats_tap/_version.py"]