forked from astrodbtoolkit/astrodb_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (92 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
103 lines (92 loc) · 2.42 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "astrodb_utils"
authors = [
{name = "Arjun Savel", email = "asavel@umd.edu"},
{name= "Kelle Cruz"},
{name= "David Rodriguez"}
]
description = "astrodb_utils: scripts for interacting with the astrodb database"
readme = "README.md"
requires-python = ">=3.11"
keywords = ["databases", "astronomy"]
license = {text = "BSD-3-Clause"}
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"numpy<3.0",
"astroquery>=0.4.9",
"astropy>7.0",
"astrodbkit>=2.3",
"lsst-felis",
"pandas",
"tqdm",
"ads>=0.12.7",
"dateparser",
"specutils>=2.0",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"ruff>0.3.7",
"pre-commit",
"pytest-dependency",
]
docs = [
"sphinx",
"sphinx-autobuild",
"sphinx_pyproject",
"nbsphinx",
"pydata-sphinx-theme",
"pandoc",
"sphinx_mdinclude",
"doc8"
]
all = ["astrodb_utils[test, docs]"]
[project.urls]
Homepage = "https://github.com/astrodbtoolkit/astrodb_utils"
Issues = "https://github.com/astrodbtoolkit/astrodb_utils/issues"
Documentation = "https://astrodb-utils.readthedocs.io/en/latest/"
[tool.setuptools_scm]
root = '.'
write_to = "astrodb_utils/version.py"
[tool.pytest.ini_options]
norecursedirs = "astrodb-template-db"
addopts = "-ra" # show extra summary info
log_cli = false # override on the command line with: pytest -o log_cli=1
log_cli_level= "INFO" # pytest -o log_cli=1 --log-cli-level=DEBUG
log_cli_format = "%(name)-15s: %(levelname)s %(message)s"
filterwarnings = [
"ignore:.*Parsing dates*:DeprecationWarning", # ignore deprecation warnings from dateparser
"ignore::astroquery.exceptions.NoResultsWarning" # ignore astroquery warnings
]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
select = [
"E", "W", #pydocstyle
"F", #pyflakes
"I", #isort
"PL", #pylint
"C901", # mccabe
"RUF010", #ruff
"PT" # pytest
]
#select = ["ALL"]
#ignore = ["PLR"] # pylint refactor
[tool.ruff.lint.per-file-ignores]
"!tests/**" = [
"PT", # pytest
]
# 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 this number.
# Default is 10
max-complexity = 20