-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (173 loc) · 4.64 KB
/
pyproject.toml
File metadata and controls
197 lines (173 loc) · 4.64 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
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
188
189
190
191
192
193
194
195
196
197
[tool.poetry]
name = "flysight2csv"
version = "0.2.4"
description = "Utilities for finding and reformatting FlySight 2 CSV files (SENSOR.CSV and TRACK.CSV)."
authors = ["Oleg Pryadko <oleg@olegpryadko.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/yoleg/flysight2csv"
documentation = "https://flysight2csv.readthedocs.io"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
]
packages = [
{ include = "flysight2csv", from = "src" },
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/yoleg/flysight2csv/issues"
"Changelog" = "https://github.com/yoleg/flysight2csv/blob/main/CHANGELOG.md"
[tool.poetry.scripts]
flysight2csv = "flysight2csv.cli:app"
[tool.poetry.dependencies]
python = "^3.10"
rich = ">=10"
simplejson = "^3.19.2"
types-simplejson = "^3.19.0.2"
rich-argparse = "^1.4.0"
pydantic = "^2.5.3"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
pytest-cov = "^4.0"
isort = "^5.13.2"
black = "^23.12.1"
ruff = "^0.1.9"
mypy = "^1.8.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
myst-parser = ">=0.16"
sphinx = ">=4.0"
furo = ">=2023.5.20"
sphinx-autobuild = ">=2021.3.14"
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = [
"src/flysight2csv/version.py:__version__",
"docs/conf.py:release",
]
build_command = "pip install poetry && poetry build"
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"chore*",
"ci*",
"refactor*",
"test*",
"doc*",
]
[tool.semantic_release.changelog.environment]
keep_trailing_newline = true
[tool.semantic_release.branches.main]
match = "main"
[tool.semantic_release.branches.noop]
match = "(?!main$)"
prerelease = true
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.pytest.ini_options]
addopts = "-v --tb=short"
filterwarnings = ["error", "default::DeprecationWarning:.*"]
log_format = '%(asctime)s %(levelname)s %(message)s'
log_date_format = '%Y-%m-%d %H:%M:%S'
pythonpath = ["src"]
log_cli= true
log_level = 'INFO'
testpaths = ["tests"]
markers = [
"slow",
"ignore_warnings(selection): Ignore warnings and errors in logs for selected tests.",
]
[tool.coverage.run]
branch = true
source = ['flysight2csv']
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"if TYPE_CHECKING",
"raise NotImplementedError",
'if __name__ == "__main__":',
]
[tool.ruff]
target-version = "py38"
line-length = 120
ignore-init-module-imports = true
ignore = [
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in `__init__`
"D401", # First line of docstring should be in imperative mood
"S101", # Use of assert
]
select = [
"B", # flake8-bugbear
"D", # flake8-docstrings
"C4", # flake8-comprehensions
"S", # flake8-bandit
"F", # pyflake
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"RUF", # ruff specific
]
[tool.ruff.per-file-ignores]
"tests/**/*" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"S101",
]
"cli.py" = ["B008"] # typer
"setup.py" = ["D100"]
"conftest.py" = ["D100"]
"docs/conf.py" = ["D100"]
"__init__.py" = ["F401"]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
lines_between_types = 1
use_parentheses = true
force_sort_within_sections = true
line_length = 120
known_first_party = ["flysight2csv", "tests"]
[tool.black]
line-length = 120
target-version = ['py310']
[tool.mypy]
plugins = ['pydantic.mypy']
mypy_path = "src/"
exclude = [
'docs/.*',
'setup.py',
]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
no_implicit_optional = true
show_error_codes = true
warn_unreachable = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "docs.*"
ignore_errors = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"