pygetcomics 1.6.2__tar.gz → 1.6.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/PKG-INFO +9 -5
  2. pygetcomics-1.6.3/pyproject.toml +319 -0
  3. pygetcomics-1.6.3/pyproject.toml.orig +261 -0
  4. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/__init__.py +2 -0
  5. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/__main__.py +3 -0
  6. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/garfield/__init__.py +3 -1
  7. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/garfield/__main__.py +2 -0
  8. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gen_pdf/__init__.py +12 -9
  9. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/__init__.py +23 -11
  10. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/peanuts/__init__.py +4 -2
  11. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/peanuts/__main__.py +3 -0
  12. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/peanuts/clean_up.py +3 -0
  13. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/peanuts/gen_book.py +17 -15
  14. pygetcomics-1.6.3/src/berhoel/get_comics/tests/__init__.py +3 -0
  15. pygetcomics-1.6.2/pyproject.toml +0 -242
  16. pygetcomics-1.6.2/src/berhoel/get_comics/__init__.py,cover +0 -45
  17. pygetcomics-1.6.2/src/berhoel/get_comics/_version.py,cover +0 -1
  18. pygetcomics-1.6.2/src/berhoel/get_comics/garfield/__init__.py,cover +0 -61
  19. pygetcomics-1.6.2/src/berhoel/get_comics/gen_pdf/__init__.py,cover +0 -109
  20. pygetcomics-1.6.2/src/berhoel/get_comics/gocomics/__init__.py,cover +0 -303
  21. pygetcomics-1.6.2/src/berhoel/get_comics/peanuts/__init__.py,cover +0 -134
  22. pygetcomics-1.6.2/src/berhoel/get_comics/peanuts/clean_up.py,cover +0 -39
  23. pygetcomics-1.6.2/src/berhoel/get_comics/peanuts/gen_book.py,cover +0 -215
  24. pygetcomics-1.6.2/src/berhoel/get_comics/tests/__init__.py +0 -1
  25. pygetcomics-1.6.2/src/berhoel/get_comics/tests/test_get_comics.py,cover +0 -6
  26. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/docs/README.md +0 -0
  27. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gen_pdf/template/auto/book.el +0 -0
  28. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gen_pdf/template/auto/book.elc +0 -0
  29. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gen_pdf/template/book.tex +0 -0
  30. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/_ast.data.json +0 -0
  31. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/_ast.meta.json +0 -0
  32. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/_importlib_modulespec.data.json +0 -0
  33. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/_importlib_modulespec.meta.json +0 -0
  34. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/abc.data.json +0 -0
  35. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/abc.meta.json +0 -0
  36. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/ast.data.json +0 -0
  37. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/ast.meta.json +0 -0
  38. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/types.data.json +0 -0
  39. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/types.meta.json +0 -0
  40. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/typing.data.json +0 -0
  41. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/gocomics/.mypy_cache/3.8/typing.meta.json.3ab670623ca749ba +0 -0
  42. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/py.typed +0 -0
  43. {pygetcomics-1.6.2 → pygetcomics-1.6.3}/src/berhoel/get_comics/tests/test_get_comics.py +0 -0
@@ -1,21 +1,25 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pygetcomics
3
- Version: 1.6.2
3
+ Version: 1.6.3
4
4
  Summary: Download various daily comics.
5
5
  Author: Berthold Höllmann
6
6
  Author-email: Berthold Höllmann <berthold-gitlab@xn--hllmanns-n4a.de>
7
7
  License: BSD-2-Clause
8
8
  Classifier: Development Status :: 4 - Beta
9
9
  Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Operating System :: OS Independent
10
11
  Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: 3.15
11
16
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
- Classifier: Operating System :: OS Independent
13
17
  Requires-Dist: click
14
- Requires-Dist: pillow
15
- Requires-Dist: lxml
16
- Requires-Dist: requests
17
18
  Requires-Dist: jinja2
19
+ Requires-Dist: lxml
20
+ Requires-Dist: pillow
18
21
  Requires-Dist: playwright
22
+ Requires-Dist: requests
19
23
  Maintainer: Berthold Höllmann
20
24
  Maintainer-email: Berthold Höllmann <berthold-gitlab@xn--hllmanns-n4a.de>
21
25
  Requires-Python: >=3.13, <4.0
@@ -0,0 +1,319 @@
1
+ [build-system]
2
+ build-backend = "uv_build"
3
+ requires = ["uv-build>=0.8.18,<0.14"]
4
+
5
+ [project]
6
+ name = "pygetcomics"
7
+ version = "1.6.3"
8
+ description = "Download various daily comics."
9
+ readme = "docs/README.md"
10
+ requires-python = ">=3.13,<4.0"
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "License :: OSI Approved :: BSD License",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python",
16
+ "Programming Language :: Python :: 3 :: Only",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Programming Language :: Python :: 3.14",
19
+ "Programming Language :: Python :: 3.15",
20
+ "Programming Language :: Python :: Implementation :: CPython",
21
+ ]
22
+ dependencies = [
23
+ "click",
24
+ "jinja2",
25
+ "lxml",
26
+ "pillow",
27
+ "playwright",
28
+ "requests",
29
+ ]
30
+ copyright = "Copyright © 2017-2025 by Berthold Höllmann"
31
+
32
+ [project.license]
33
+ text = "BSD-2-Clause"
34
+
35
+ [[project.maintainers]]
36
+ name = "Berthold Höllmann"
37
+ email = "berthold-gitlab@xn--hllmanns-n4a.de"
38
+
39
+ [[project.authors]]
40
+ name = "Berthold Höllmann"
41
+ email = "berthold-gitlab@xn--hllmanns-n4a.de"
42
+
43
+ [project.urls]
44
+ Documentation = "https://python.xn--hllmanns-n4a.de/pyGetComics/"
45
+ Homepage = "https://python.xn--hllmanns-n4a.de/"
46
+ Repository = "https://gitlab.com/berhoel/python/pyGetComics.git"
47
+
48
+ [project.scripts]
49
+ get-comics = "berhoel.get_comics:get_comics"
50
+ get-garfield = "berhoel.get_comics.garfield:get_garfield"
51
+ get-peanuts = "berhoel.get_comics.peanuts:get_peanuts"
52
+
53
+ [dependency-groups]
54
+ dev = [
55
+ "black",
56
+ "ipython",
57
+ "isort",
58
+ "mypy",
59
+ "pdbp",
60
+ "pyproject-fmt",
61
+ "ruff",
62
+ "ty",
63
+ ]
64
+ test = [
65
+ "doc8",
66
+ "pytest",
67
+ "pytest-benchmark[histogram]",
68
+ "pytest-cache",
69
+ "pytest-cov",
70
+ "pytest-mock",
71
+ "pytest-randomly",
72
+ "pytest-ruff",
73
+ "pytest-runner",
74
+ "rope",
75
+ "tox",
76
+ "xdoctest",
77
+ ]
78
+ doc = [
79
+ "berhoel-mkdocs-material",
80
+ "griffe-inherited-docstrings",
81
+ "griffe-pydantic",
82
+ "griffe-sphinx",
83
+ "griffe-typingdoc",
84
+ "markdown-callouts",
85
+ "markdown-exec[ansi]",
86
+ "matplotlib",
87
+ "mkdocs-click",
88
+ "mkdocs-codeinclude-plugin",
89
+ "mkdocs-include-markdown-plugin",
90
+ "mkdocs-llmstxt",
91
+ "mkdocs-materialx",
92
+ "mkdocs-minify-plugin",
93
+ "pydantic",
94
+ ]
95
+ types = [
96
+ "lxml-stubs",
97
+ "types-jinja2",
98
+ "types-lxml",
99
+ "types-pillow",
100
+ "types-requests",
101
+ ]
102
+
103
+ [tool.hatch.build.targets.wheel]
104
+ include = ["berhoel"]
105
+ exclude = [
106
+ "**/.#*.py",
107
+ "**/#*.py#",
108
+ ]
109
+ from = "src"
110
+
111
+ [tool.hatch.build.targets.sdist]
112
+ include = ["berhoel"]
113
+ exclude = [
114
+ "**/.#*.py",
115
+ "**/#*.py#",
116
+ ]
117
+ from = "src"
118
+
119
+ [tool.uv]
120
+ default-groups = [
121
+ "dev",
122
+ "test",
123
+ "doc",
124
+ "types",
125
+ ]
126
+
127
+ [tool.uv.sources.berhoel-mkdocs-material]
128
+ git = "https://gitlab.com/berhoel/python/mkdocs-material-berhoel.git"
129
+ branch = "main"
130
+
131
+ [[tool.uv.cache-keys]]
132
+ file = "pyproject.toml"
133
+
134
+ [[tool.uv.cache-keys]]
135
+ file = "src/**/*.{f,f90,pyx}"
136
+
137
+ [[tool.uv.cache-keys]]
138
+ file = "CMakeLists.txt"
139
+
140
+ [tool.uv.build-backend]
141
+ module-name = "berhoel.get_comics"
142
+
143
+ [tool.black]
144
+ target-version = ["py314"]
145
+ line-length = 88
146
+ include = '\.pyi?$'
147
+
148
+ [tool.ruff]
149
+ line-length = 88
150
+ namespace-packages = ["berhoel"]
151
+ include = ["src/**/*.py"]
152
+
153
+ [tool.ruff.format]
154
+ docstring-code-line-length = "dynamic"
155
+ docstring-code-format = true
156
+
157
+ [tool.ruff.lint]
158
+ select = ["ALL"]
159
+ ignore = [
160
+ "COM812",
161
+ "D211",
162
+ "D213",
163
+ "ISC001",
164
+ "RUF200",
165
+ ]
166
+ future-annotations = true
167
+
168
+ [tool.ruff.lint.per-file-ignores]
169
+ "docs/**.py" = ["INP001"]
170
+
171
+ [tool.ruff.lint.flake8-annotations]
172
+ mypy-init-return = true
173
+
174
+ [tool.ruff.lint.flake8-quotes]
175
+ docstring-quotes = "double"
176
+
177
+ [tool.ruff.lint.isort]
178
+ combine-as-imports = true
179
+ default-section = "third-party"
180
+ force-sort-within-sections = true
181
+ force-wrap-aliases = true
182
+ known-first-party = ["berhoel"]
183
+ known-third-party = ["pytest"]
184
+ required-imports = ["from __future__ import annotations"]
185
+ section-order = [
186
+ "future",
187
+ "standard-library",
188
+ "third-party",
189
+ "first-party",
190
+ "local-folder",
191
+ ]
192
+
193
+ [tool.ruff.lint.pydocstyle]
194
+ convention = "google"
195
+
196
+ [tool.isort]
197
+ line_length = 88
198
+ balanced_wrapping = true
199
+ use_parentheses = true
200
+ include_trailing_comma = true
201
+ force_grid_wrap = 0
202
+ length_sort = true
203
+ combine_as_imports = true
204
+ float_to_top = true
205
+ known_third_party = ["pytest"]
206
+ known_first_party = ["berhoel"]
207
+ namespace_packages = ["berhoel"]
208
+ dedup_headings = true
209
+
210
+ [tool.pytest]
211
+ addopts = [
212
+ "--benchmark-autosave",
213
+ "--benchmark-compare",
214
+ "--benchmark-group-by=func",
215
+ "--benchmark-histogram=.benchmarks/benchmark-histogram",
216
+ "--benchmark-save-data",
217
+ "--benchmark-sort=fullname",
218
+ "--capture=no",
219
+ "--cov=src/berhoel/get_comics",
220
+ "--cov-report=term",
221
+ "--cov-report=html:htmlcov",
222
+ "--cov-branch",
223
+ "--cov-context=test",
224
+ "--cov-report=html:htmlcov",
225
+ "--cov-report=term",
226
+ "--cov-report=term-missing:skip-covered",
227
+ "--cov-report=xml",
228
+ "--cov=src",
229
+ "--failed-first",
230
+ "--ignore=.svn",
231
+ "--ignore=.venv",
232
+ "--ignore=__pycache__",
233
+ "--ignore=build_exe",
234
+ "--ignore=data",
235
+ "--ignore=doc",
236
+ "--ignore=htmlcov",
237
+ "--import-mode=importlib",
238
+ "--junitxml=pytest_main.xml",
239
+ "--ruff",
240
+ "--strict-config",
241
+ "--strict-markers",
242
+ "--xdoctest",
243
+ "--xdoctest-glob=*.md",
244
+ ]
245
+ doctest_encoding = "UTF-8"
246
+ junit_family = "xunit2"
247
+ minversion = "7.0"
248
+ testpaths = ["src/berhoel"]
249
+
250
+ [tool.coverage.run]
251
+ core = "ctrace"
252
+
253
+ [tool.coverage.report]
254
+ exclude_lines = [
255
+ "@overload",
256
+ "if __name__ == .__main__.:",
257
+ "if TYPE_CHECKING:",
258
+ "pragma: no cover",
259
+ "raise NotImplementedError",
260
+ ]
261
+
262
+ [tool.tox]
263
+ requires = ["tox>=4.19"]
264
+ env_list = [
265
+ "3.16",
266
+ "3.15",
267
+ "3.14",
268
+ "3.13",
269
+ "3.13t",
270
+ "3.14t",
271
+ "3.15t",
272
+ "3.16t",
273
+ "ty",
274
+ ]
275
+ skip_missing_interpreters = true
276
+
277
+ [tool.tox.env.ty]
278
+ description = "Run ty"
279
+ deps = ["ty"]
280
+ commands = [[
281
+ "uv",
282
+ "run",
283
+ "ty",
284
+ "check",
285
+ ]]
286
+ allowlist_externals = ["uv"]
287
+
288
+ [tool.tox.env_run_base]
289
+ description = "Run test under {base_python}"
290
+ deps = [
291
+ "pdbpp",
292
+ "pytest",
293
+ "pytest-benchmark[histogram]",
294
+ "pytest-cov",
295
+ "pytest-mock",
296
+ "pytest-ruff",
297
+ "pytest-runner",
298
+ "rope",
299
+ "toml",
300
+ "xdoctest",
301
+ ]
302
+ commands = [[
303
+ "uv",
304
+ "run",
305
+ "pytest",
306
+ ]]
307
+ allowlist_externals = ["uv"]
308
+
309
+ [tool.doc8]
310
+ ignore-path = [
311
+ "pygetcomics.egg-info",
312
+ ".tox",
313
+ ".venv",
314
+ ".direnv",
315
+ "site",
316
+ ]
317
+ extension = [".md"]
318
+ allow_long_titles = true
319
+ max_line_length = 88
@@ -0,0 +1,261 @@
1
+ [build-system]
2
+ build-backend = "uv_build"
3
+ requires = [ "uv-build>=0.8.18,<0.14" ]
4
+
5
+ [project]
6
+ name = "pygetcomics"
7
+ version = "1.6.3"
8
+ description = "Download various daily comics."
9
+ readme = "docs/README.md"
10
+ license = { text = "BSD-2-Clause" }
11
+ maintainers = [ { name = "Berthold Höllmann", email = "berthold-gitlab@xn--hllmanns-n4a.de" } ]
12
+ authors = [ { name = "Berthold Höllmann", email = "berthold-gitlab@xn--hllmanns-n4a.de" } ]
13
+ requires-python = ">=3.13,<4.0"
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "License :: OSI Approved :: BSD License",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: 3.14",
22
+ "Programming Language :: Python :: 3.15",
23
+ "Programming Language :: Python :: Implementation :: CPython",
24
+ ]
25
+ dependencies = [
26
+ "click",
27
+ "jinja2",
28
+ "lxml",
29
+ "pillow",
30
+ "playwright",
31
+ "requests",
32
+ ]
33
+ urls.Documentation = "https://python.xn--hllmanns-n4a.de/pyGetComics/"
34
+ urls.Homepage = "https://python.xn--hllmanns-n4a.de/"
35
+ urls.Repository = "https://gitlab.com/berhoel/python/pyGetComics.git"
36
+ scripts.get-comics = "berhoel.get_comics:get_comics"
37
+ scripts.get-garfield = "berhoel.get_comics.garfield:get_garfield"
38
+ scripts.get-peanuts = "berhoel.get_comics.peanuts:get_peanuts"
39
+ copyright = "Copyright © 2017-2025 by Berthold Höllmann"
40
+
41
+ [dependency-groups]
42
+ dev = [
43
+ "black",
44
+ "ipython",
45
+ "isort",
46
+ "mypy",
47
+ "pdbp",
48
+ "pyproject-fmt",
49
+ "ruff",
50
+ "ty",
51
+ ]
52
+ test = [
53
+ "doc8",
54
+ "pytest",
55
+ "pytest-benchmark[histogram]",
56
+ "pytest-cache",
57
+ "pytest-cov",
58
+ "pytest-mock",
59
+ "pytest-randomly",
60
+ "pytest-ruff",
61
+ "pytest-runner",
62
+ "rope",
63
+ "tox",
64
+ "xdoctest",
65
+ ]
66
+ doc = [
67
+ "berhoel-mkdocs-material",
68
+ "griffe-inherited-docstrings",
69
+ "griffe-pydantic",
70
+ "griffe-sphinx",
71
+ "griffe-typingdoc",
72
+ "markdown-callouts",
73
+ "markdown-exec[ansi]",
74
+ "matplotlib",
75
+ "mkdocs-click",
76
+ "mkdocs-codeinclude-plugin",
77
+ "mkdocs-include-markdown-plugin",
78
+ "mkdocs-llmstxt",
79
+ "mkdocs-materialx",
80
+ "mkdocs-minify-plugin",
81
+ "pydantic",
82
+ ]
83
+ types = [
84
+ "lxml-stubs",
85
+ "types-jinja2",
86
+ "types-lxml",
87
+ "types-pillow",
88
+ "types-requests",
89
+ ]
90
+
91
+ [tool.hatch]
92
+ build.targets.wheel.include = [ "berhoel" ]
93
+ build.targets.wheel.exclude = [
94
+ "**/.#*.py",
95
+ "**/#*.py#",
96
+ ]
97
+ build.targets.wheel.from = "src"
98
+ build.targets.sdist.include = [ "berhoel" ]
99
+ build.targets.sdist.exclude = [
100
+ "**/.#*.py",
101
+ "**/#*.py#",
102
+ ]
103
+ build.targets.sdist.from = "src"
104
+
105
+ [tool.uv]
106
+ default-groups = [
107
+ "dev",
108
+ "test",
109
+ "doc",
110
+ "types",
111
+ ]
112
+ sources.berhoel-mkdocs-material = { git = "https://gitlab.com/berhoel/python/mkdocs-material-berhoel.git", branch = "main" }
113
+ cache-keys = [ { file = "pyproject.toml" }, { file = "src/**/*.{f,f90,pyx}" }, { file = "CMakeLists.txt" } ]
114
+ build-backend.module-name = "berhoel.get_comics"
115
+
116
+ [tool.black]
117
+ target-version = [ "py314" ]
118
+ line-length = 88
119
+ include = '\.pyi?$'
120
+
121
+ [tool.ruff]
122
+ line-length = 88
123
+ namespace-packages = [ "berhoel" ]
124
+ include = [ "src/**/*.py" ]
125
+ # Set the line length limit used when formatting code snippets in
126
+ # docstrings.
127
+ #
128
+ # This only has an effect when the `docstring-code-format` setting is
129
+ # enabled.
130
+ format.docstring-code-line-length = "dynamic"
131
+ # Enable auto-formatting of code examples in docstrings. Markdown,
132
+ format.docstring-code-format = true
133
+ lint.select = [ "ALL" ]
134
+ lint.ignore = [ "COM812", "D211", "D213", "ISC001", "RUF200" ]
135
+ lint.per-file-ignores."docs/**.py" = [ "INP001" ]
136
+ lint.flake8-annotations.mypy-init-return = true
137
+ lint.flake8-quotes.docstring-quotes = "double"
138
+ lint.isort.combine-as-imports = true
139
+ lint.isort.default-section = "third-party"
140
+ lint.isort.force-sort-within-sections = true
141
+ lint.isort.force-wrap-aliases = true
142
+ lint.isort.known-first-party = [ "berhoel" ]
143
+ lint.isort.known-third-party = [ "pytest" ]
144
+ lint.isort.required-imports = [ "from __future__ import annotations" ]
145
+ lint.isort.section-order = [
146
+ "future",
147
+ "standard-library",
148
+ "third-party",
149
+ "first-party",
150
+ "local-folder",
151
+ ]
152
+ lint.pydocstyle.convention = "google"
153
+ # Enable `from __future__ import annotations` imports
154
+ lint.future-annotations = true
155
+
156
+ [tool.isort]
157
+ line_length = 88
158
+ balanced_wrapping = true
159
+ use_parentheses = true
160
+ include_trailing_comma = true
161
+ force_grid_wrap = 0
162
+ length_sort = true
163
+ combine_as_imports = true
164
+ float_to_top = true
165
+ known_third_party = [ "pytest" ]
166
+ known_first_party = [ "berhoel" ]
167
+ namespace_packages = [ "berhoel" ]
168
+ dedup_headings = true
169
+
170
+ [tool.pytest]
171
+ addopts = [
172
+ "--benchmark-autosave",
173
+ "--benchmark-compare",
174
+ "--benchmark-group-by=func",
175
+ "--benchmark-histogram=.benchmarks/benchmark-histogram",
176
+ "--benchmark-save-data",
177
+ "--benchmark-sort=fullname",
178
+ "--capture=no",
179
+ "--cov=src/berhoel/get_comics",
180
+ "--cov-report=term",
181
+ "--cov-report=html:htmlcov",
182
+ "--cov-branch",
183
+ "--cov-context=test",
184
+ # "--cov-fail-under=80",
185
+ "--cov-report=html:htmlcov",
186
+ "--cov-report=term",
187
+ "--cov-report=term-missing:skip-covered",
188
+ "--cov-report=xml",
189
+ "--cov=src",
190
+ "--failed-first",
191
+ "--ignore=.svn",
192
+ "--ignore=.venv",
193
+ "--ignore=__pycache__",
194
+ "--ignore=build_exe",
195
+ "--ignore=data",
196
+ "--ignore=doc",
197
+ "--ignore=htmlcov",
198
+ "--import-mode=importlib",
199
+ "--junitxml=pytest_main.xml",
200
+ "--ruff",
201
+ "--strict-config",
202
+ "--strict-markers",
203
+ "--xdoctest",
204
+ "--xdoctest-glob=*.md",
205
+ ]
206
+ doctest_encoding = "UTF-8"
207
+ junit_family = "xunit2"
208
+ minversion = "7.0"
209
+ testpaths = [ "src/berhoel" ]
210
+
211
+ [tool.coverage]
212
+ run.core = "ctrace"
213
+ report.exclude_lines = [
214
+ "@overload",
215
+ "if __name__ == .__main__.:",
216
+ "if TYPE_CHECKING:",
217
+ "pragma: no cover",
218
+ "raise NotImplementedError",
219
+ ]
220
+
221
+ [tool.tox]
222
+ requires = [ "tox>=4.19" ]
223
+ env_list = [
224
+ "3.16",
225
+ "3.15",
226
+ "3.14",
227
+ "3.13",
228
+ "3.13t",
229
+ "3.14t",
230
+ "3.15t",
231
+ "3.16t",
232
+ "ty",
233
+ ]
234
+ skip_missing_interpreters = true
235
+ env.ty.description = "Run ty"
236
+ env.ty.deps = [
237
+ "ty",
238
+ ]
239
+ env.ty.commands = [ [ "uv", "run", "ty", "check" ] ]
240
+ env.ty.allowlist_externals = [ "uv" ]
241
+ env_run_base.description = "Run test under {base_python}"
242
+ env_run_base.deps = [
243
+ "pdbpp",
244
+ "pytest",
245
+ "pytest-benchmark[histogram]",
246
+ "pytest-cov",
247
+ "pytest-mock",
248
+ "pytest-ruff",
249
+ "pytest-runner",
250
+ "rope",
251
+ "toml",
252
+ "xdoctest",
253
+ ]
254
+ env_run_base.commands = [ [ "uv", "run", "pytest" ] ]
255
+ env_run_base.allowlist_externals = [ "uv" ]
256
+
257
+ [tool.doc8]
258
+ ignore-path = [ "pygetcomics.egg-info", ".tox", ".venv", ".direnv", "site" ]
259
+ extension = [ ".md" ]
260
+ allow_long_titles = true
261
+ max_line_length = 88
@@ -10,6 +10,8 @@ from playwright.sync_api import sync_playwright
10
10
 
11
11
  from . import garfield, peanuts
12
12
 
13
+ # Copyright © 2026 by Berthold Höllmann
14
+
13
15
 
14
16
  @click.command()
15
17
  @click.version_option(version=f"{metadata.version('pyGetComics')}")
@@ -4,4 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  from . import get_comics
6
6
 
7
+ # Copyright © 2026 by Berthold Höllmann
8
+
9
+
7
10
  get_comics()
@@ -10,6 +10,8 @@ from playwright.sync_api import sync_playwright
10
10
 
11
11
  from berhoel.get_comics.gocomics import GoComics
12
12
 
13
+ # Copyright © 2026 by Berthold Höllmann
14
+
13
15
 
14
16
  class Garfield(GoComics):
15
17
  """Download daily Garfield comcs fromGoComics."""
@@ -23,7 +25,7 @@ class Garfield(GoComics):
23
25
 
24
26
  gif_path_fmt = f"{garfield_path / '%Y' / '%m' / '%d.gif'}"
25
27
  png_path_fmt = f"{garfield_path / '%Y' / '%m' / '%d.png'}"
26
- url_fmt = "http://www.gocomics.com/garfield/%Y/%m/%d"
28
+ url_fmt = "https://www.gocomics.com/garfield/%Y/%m/%d"
27
29
 
28
30
  statefile_name = garfield_path / "garfield.statfile"
29
31
 
@@ -4,4 +4,6 @@ from __future__ import annotations
4
4
 
5
5
  from . import get_garfield
6
6
 
7
+ # Copyright © 2026 by Berthold Höllmann
8
+
7
9
  get_garfield()