-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (79 loc) · 2.5 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (79 loc) · 2.5 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "heliox"
version = "0.1.0"
description = "A solar physics toolkit for Python"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "BSD-3-Clause" }
authors = [{ name = "Pragyaan Gaur" }]
keywords = ["solar", "physics", "astronomy", "sun", "heliophysics"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy>=1.23",
"astropy>=5.3",
"scipy>=1.10",
"matplotlib>=3.6",
"pandas>=1.5",
]
[project.optional-dependencies]
test = ["pytest>=7.0", "pytest-cov"]
docs = ["sphinx>=6.0"]
dev = ["heliox[test,docs]", "ruff", "pre-commit"]
[project.urls]
Homepage = "https://github.com/pragyaangaur/heliox"
Source = "https://github.com/pragyaangaur/heliox"
Issues = "https://github.com/pragyaangaur/heliox/issues"
[tool.setuptools.packages.find]
include = ["heliox*"]
[tool.pytest.ini_options]
testpaths = ["heliox"]
addopts = "--doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore:ERFA function:erfa.core.ErfaWarning",
"ignore::astropy.wcs.FITSFixedWarning",
"ignore:Animation was deleted:UserWarning",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B"]
ignore = ["E501", "B008"]
[tool.ruff.lint.per-file-ignores]
# Tests deliberately evaluate properties for their side effects, usually inside
# a pytest.raises block, which looks like a useless expression.
"heliox/*/tests/*.py" = ["B018"]
"heliox/*/*/tests/*.py" = ["B018"]
# The sample names are served by a module-level __getattr__ so that the files
# are only generated when they are actually used.
"heliox/data/sample.py" = ["F822"]
# Star imports are how the subpackages re-export their public API.
"heliox/*/__init__.py" = ["F403", "F405"]
[tool.ruff.lint.isort]
# Scientific Python convention: numpy and friends, then astropy, then heliox.
section-order = [
"future",
"standard-library",
"third-party",
"astropy",
"first-party",
"local-folder",
]
known-first-party = ["heliox"]
[tool.ruff.lint.isort.sections]
astropy = ["astropy", "erfa"]
[tool.coverage.run]
source = ["heliox"]
omit = ["*/tests/*", "*/conftest.py"]