File: pyproject.toml

package info (click to toggle)
pyorbital 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 632 kB
  • sloc: python: 3,676; makefile: 89; javascript: 6
file content (104 lines) | stat: -rw-r--r-- 2,690 bytes parent folder | download
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
[project]
name = "pyorbital"
dynamic = ["version"]
description = "Scheduling satellite passes in Python"
authors = [
    { name = "The Pytroll Team", email = "pytroll@googlegroups.com" }
]
dependencies = ["numpy>=1.19.0",
                "scipy",
                "requests",
                "defusedxml",
                "pyproj>=3.7.1",
                "donfig",
                ]
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE.txt"]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Science/Research",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Topic :: Scientific/Engineering",
    "Topic :: Scientific/Engineering :: Astronomy"
]

[project.scripts]
"fetch_tles.py" = "pyorbital.fetch_tles:run"
fetch_tles = "pyorbital.fetch_tles:run"

[project.urls]
"Documentation" = "https://pyorbital.readthedocs.io/en/latest/"

[project.optional-dependencies]
doc = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-apidoc"]
test = [
    "dask>=2025.3.0",
    "pytest>=8.3.5",
    "xarray>=2025.3.1",
]

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["pyorbital"]

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "pyorbital/version.py"

[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
default_section = "THIRDPARTY"
known_first_party = "pyorbital"
line_length = 120

[tool.ruff]
line-length = 120
extend-exclude = ["pyorbital/tests/SGP4-VER.TLE"]

[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
# In the future, add "B", "S", "N"
select = ["A", "D", "E", "W", "F", "I", "PT", "TID", "C90", "Q", "T10", "T20", "NPY"]

[tool.ruff.lint.per-file-ignores]
"pyorbital/tests/*" = ["S101"]  # assert allowed in tests
"pyorbital/version.py" = ["D100", "Q000"]  # automatically generated by hatch-vcs
"pyorbital/tlefile.py" = ["T201", "T203"]  # allow print and pprint
"pyorbital/geoloc.py" = ["T201"]  # allow print
"pyorbital/geoloc_example.py" = ["T201"]  # allow print
"pyorbital/orbital.py" = ["T201"]  # allow print


[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

[tool.coverage.run]
relative_files = true
omit = ["pyorbital/version.py"]

[tool.pytest.ini_options]
filterwarnings = [
    "error",
    "ignore:numpy.ndarray size changed:RuntimeWarning",
]