-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (117 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
132 lines (117 loc) · 2.77 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["hatchling>=1.25", "hatch-vcs>=0.4"]
build-backend = "hatchling.build"
[project]
name = "panoptes-aag"
description = "Weather service for the Lunatico AAG CloudWatcher."
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE.txt" }
dynamic = ["version"]
authors = [
{ name = "Wilfred Tyler Gee", email = "wtylergee@gmail.com" },
]
keywords = ["weather", "AAG", "CloudWatcher", "astronomy"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
]
dependencies = [
"astropy",
"fastapi[all]",
"fastapi-utils",
"httpie",
"pandas",
"pydantic",
"pydantic-settings",
"pyserial>=3.4",
"python-dotenv",
"typer",
]
[project.urls]
Homepage = "https://github.com/panoptes/aag-weather/"
Documentation = "https://projectpanoptes.org/"
[project.scripts]
aag-weather = "aag.cli:app"
[project.optional-dependencies]
testing = [
"pytest",
"pytest-cov",
]
[tool.hatch.version]
source = "vcs"
[tool.setuptools.packages.find]
where = ["src/"]
include = ["aag", "aag.*"]
[tool.hatch.build.targets.wheel]
packages = ["src/aag"]
[tool.hatch.envs.default]
dependencies = [
"ruff>=0.5.0"
]
[tool.hatch.envs.default.scripts]
lint = "ruff check ."
lint-fix = "ruff check --fix ."
fmt = "ruff format ."
fmt-check = "ruff format --check ."
[tool.hatch.envs.test]
dependencies = ["pytest", "pytest-cov"]
[tool.hatch.envs.test.scripts]
# Run tests with: hatch run test
# Or pass args: hatch run test -- -q
TEST = "pytest"
test = "pytest {args}"
[tool.pytest.ini_options]
addopts = [
"--cov=aag",
"--cov-report=term-missing",
"--cov-report=xml:build/coverage.xml",
"--strict-markers",
"--doctest-modules",
"-vv",
"-ra",
]
# keep test discovery consistent with previous setup
norecursedirs = ["dist", "build", ".tox"]
testpaths = ["tests"]
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL"
filterwarnings = [
"ignore:elementwise == comparison failed:DeprecationWarning",
"ignore::pytest.PytestDeprecationWarning",
]
[tool.coverage.report]
show_missing = true
ignore_errors = true
exclude_lines = [
"pragma: no cover",
"noqa",
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = [
".tox",
"build",
"dist",
".eggs",
"docs/conf.py",
]
[tool.ruff.lint]
extend-ignore = ["E203"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
docstring-code-format = true