-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
187 lines (166 loc) · 4.6 KB
/
pyproject.toml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[build-system]
requires = ["setuptools>=64.0.0", "wheel", "setuptools_scm>=6.2.0"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
include = '/src/.*\.pyi?$|/tests/.*\.pyi?$|/docs/.*\.pyi?$|noxfile.py'
classifiers = [
'Natural Language :: English',
'Operating System :: Raspberry Pi',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Typing :: Typed',
]
[tool.ruff.isort]
known-first-party = [
"astropitography",
]
[project]
name = "astropitography"
description = "Astrophotography + raspberry pi HQ camera = AstroPitography"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["astrophotography", "raspberry pi"]
authors = [
{ name = "Adam Baskerville", email = "[email protected]" },
]
maintainers = [
{ name = "Adam Baskerville", email = "[email protected]" },
{ name = "Daniel Opara", email = "[email protected]" }
]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Topic :: Education",
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
"Topic :: Multimedia :: Video :: Capture",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ['version']
dependencies = [
'scipy==1.8.1',
'numpy==1.24.3',
'picamera>=1.12',
'pidng>=3.4.7',
'Pillow>=8.4.0',
'PySimpleGUI<=4.60.5',
]
[project.optional-dependencies]
test = [
"pytest >=6",
"pytest-cov >=3",
]
dev = [
'nox',
'pre-commit',
]
docs = [
'sphinx!=5.1.0',
'sphinx-sitemap',
'sphinx-inline-tabs',
'sphinx-book-theme',
'sphinx_design',
'sphinx-toolbox',
'sphinx_togglebutton',
'jupytext>=1.11.2',
'myst-nb',
'screeninfo'
]
[project.urls]
Homepage = "https://adambaskerville.github.io/tabs/astro/"
[tool.coverage.report]
show_missing = true
[tool.coverage.run]
source_pkgs = ['astropitography']
branch = true
[tool.isort]
known_first_party = "astropitography"
profile = "black"
src_paths = ["src", "tests"]
[tool.mypy]
cache_dir = ".cache/mypy_cache"
disallow_incomplete_defs = true
disallow_subclassing_any = false
disallow_untyped_decorators = false
disallow_untyped_defs = true
explicit_package_bases = true
files = ['src/', 'tests/', 'noxfile.py']
ignore_missing_imports = true
mypy_path = 'src'
namespace_packages = true
no_implicit_optional = true
plugins = ['pydantic.mypy']
warn_redundant_casts =true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
show_error_codes = true
[[tool.mypy.overrides]]
check_untyped_defs = true
disallow_untyped_decorators = false
disallow_untyped_defs = false
module = 'noxfile'
[tool.ruff]
cache-dir = ".cache/ruff"
line-length = 88
src = ["src/astropitography", "tests"]
namespace-packages = ["src/astropitography"]
respect-gitignore = true
show-fixes = true
select = [ # https://beta.ruff.rs/docs/rules/
# "A", # flake8-builtins
# "ARG", # flake8-unused-arguments
"B", # flake8-bugbear
# "BLE", # flake8-blind-except
"COM", # flake8-commas
"C4", # flake8-comprehensions
# "C90", # mccabe
# "D", # pydocstyle
"DTZ", # flake8-datetimz
"E", # pycodestyle error
# "ERA", # eradicate
"F", # Pyflakes
# "G", # flake8-logging-format
"I", # isort
# "ISC", # flake8-implicit-str-concat
# "N", # pep8-naming
# "NPY", # NumPy-specific rules
"Q", # flake8-quotes
"PD", # pandas-vet
# "PIE", # flake8-pie
# "PL", # Pylint
# "PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # flake8-bandit
# "SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
# "TRY", # tryceratops
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
[tool.setuptools_scm]
local_scheme = "dirty-tag"
write_to = "src/astropitography/version.py"
[tool.setuptools.packages.find]
namespaces = true
where = ["src"]
exclude = ["tests*", "images*", "AstroPitography_GUI.png", "AstroPitographyLogoSmall.png", ".gitignore"]
[tool.setuptools.package-data]
"astropitography.db" = ["*.npz"]
"astropitography" = ["*.png"]
[project.scripts]
astropitography = "astropitography.__main__:main"