-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (91 loc) · 2.37 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
[build-system]
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[project]
name = "ct-archived-tags"
description = "Archived tag formats for ComicTagger"
authors = [{name = "Timmy Welch", email = "[email protected]"}]
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
urls = {Homepage = "https://github.com/comictagger/archived-tags"}
requires-python = ">=3.8"
dependencies = ["typing-extensions>=4.3.0;python_version < '3.11'"]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]
[project.entry-points."comicapi.tags"]
cbi = "ct_archived_tags.comicbookinfo:ComicBookInfo"
comet = "ct_archived_tags.comet:CoMet"
[tool.tox]
legacy_tox_ini = """
[tox:tox]
envlist = py3.9
[testenv:wheel]
description = Generate wheel and tar.gz
labels =
release
build
skip_install = true
deps =
build
commands_pre =
-python -c 'import shutil,pathlib; \
shutil.rmtree("./build/", ignore_errors=True); \
shutil.rmtree("./dist/", ignore_errors=True)'
commands =
python -m build
[testenv:pypi-upload]
description = Upload wheel to PyPi
platform = Linux
labels =
release
skip_install = true
depends = wheel
deps =
twine
passenv =
TWINE_*
setenv =
TWINE_NON_INTERACTIVE=true
commands =
python -m twine upload dist/*.whl dist/*.tar.gz
"""
[tool.pep8]
ignore = "E265,E501"
max_line_length = "120"
[tool.autopep8]
max_line_length = 120
ignore = "E265,E501"
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
warn_return_any = false
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["testing.*"]
warn_return_any = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = ["tests.*"]
warn_return_any = false
disallow_untyped_defs = false
[tool.ruff]
line-length = 120
lint.extend-safe-fixes = ["TCH"]
lint.extend-select = ["COM812", "TCH"]