-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
172 lines (149 loc) · 3.85 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
[tool.poetry]
name = "podcast-archiver"
version = "2.3.0"
description = "Archive all episodes from your favorite podcasts"
# cspell: disable
authors = ["Jan Willhaus <mail@janwillhaus.de>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "podcast_archiver" }]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Information Technology",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Multimedia",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: System :: Archiving",
"Topic :: Utilities",
]
repository = "https://github.com/janw/podcast-archiver"
[tool.poetry.urls]
"Bug Reports" = "https://github.com/janw/podcast-archiver/issues"
[tool.poetry.scripts]
podcast-archiver = 'podcast_archiver.cli:main'
[tool.poetry.dependencies]
python = "^3.10"
feedparser = "^6.0.10"
requests = "^2.29.0"
pydantic = "^2.5.3"
platformdirs = ">=3.4,<5.0"
pyyaml = "^6.0"
rich-click = "^1.8.0"
python-slugify = "^8.0.1"
tqdm = "^4.66.4"
[tool.poetry.group.dev.dependencies]
ipython = "^8"
ipdb = "*"
ruff = "0.6.8"
pre-commit = ">=3,<5"
commitizen = ">=3,<5"
rich-codex = "^1"
mypy = "^1"
types-tqdm = "^4.66.0.20240417"
[tool.poetry.group.tests.dependencies]
pytest = "^8"
pytest-cov = ">=5,<7"
pytest-recording = "^0.13.2"
pytest-env = "1.1.5"
coverage-conditional-plugin = "^0.9.0"
responses = "^0.25.3"
[tool.commitizen]
version_scheme = "semver"
version_provider = "poetry"
version_files = [
"pyproject.toml:version = ",
"podcast_archiver/__init__.py",
]
annotated_tag = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_start_rev = "0.4"
gpg_sign = true
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # bugbear
"A", # builtins
"ISC", # implicit-str-concat
"Q", # quotes
"TID", # tidy-imports
"C4", # comprehensions
"SIM", # simplify
"C90", # mccabe
"FA", # future-annotations
"TCH", # type-checking
"RUF", # ruff-specific
]
ignore = [
"SIM108", # if-else-block-instead-of-if-exp
"ISC001", # single-line-implicit-string-concatenation
]
[tool.ruff.lint.per-file-ignores]
"compat.py" = ["F401"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.mccabe]
max-complexity = 8
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests",]
addopts = "--block-network --cov podcast_archiver --cov-config=pyproject.toml --cov-report term --no-cov-on-fail"
[tool.pytest_env]
PODCAST_ARCHIVER_CONFIG = ""
TESTING = 1
[tool.coverage.run]
branch = true
source = ["podcast_archiver"]
plugins = ["coverage_conditional_plugin"]
[tool.coverage.coverage_conditional_plugin.rules]
no-cover-gte-311 = "sys_version_info >= (3, 11)"
no-cover-lt-311 = "sys_version_info < (3, 11)"
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
fail_under = 60
precision = 2
show_missing = true
[tool.mypy]
disallow_untyped_defs = true
disallow_any_generics = true
# disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
# warn_return_any = true
strict_optional = true
strict_equality = true
check_untyped_defs = true
no_implicit_reexport = true
packages = ["podcast_archiver", "tests"]
plugins = [
"pydantic.mypy",
]
[[tool.mypy.overrides]]
module = [
"feedparser.*",
"requests.*",
"slugify.*",
"yaml.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["podcast_archiver.compat.*"]
implicit_reexport = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"