-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (119 loc) · 2.65 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
[build-system]
requires = ["setuptools~=69.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pre-commit-download"
version = "0.1.0"
description = "Build-backend for downloading external single file binaries."
readme = "README.md"
authors = [
{name = "Pavel Kolomytsev", email = "pkolomytsev@gmail.com"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development",
"Typing :: Typed",
]
requires-python = ">=3.8"
dependencies = [
"setuptools~=69.0",
"tomli~=2.0",
]
[project.urls]
Homepage = "https://github.com/pkolomytsev/pre-commit-download"
[project.optional-dependencies]
lint = [
"Flake8-pyproject==1.2.3",
"wemake-python-styleguide==0.18.0",
"mypy==1.10.0",
"black==24.4.2",
]
test = [
"pytest==8.2.0",
]
dev = [
"pre-commit==3.5.0",
"nox==2024.4.15",
"build==1.2.1",
"twine==5.0.0",
"pre-commit-download[lint]",
"pre-commit-download[test]",
]
[tool.flake8]
inline-quotes = "double"
docstring_style = "sphinx"
max-line-length = 80
max-local-variables = 7
max-methods = 10
max-imports = 16
max-module-members = 10
ignore = [
# Found upper-case constant in a class
"WPS115",
# Found `f` string
"WPS305",
# Found class without a base class
"WPS306",
# Whitespace before ':'
"E203",
# Found nested function
"WPS430",
# Found subclassing a builtin
"WPS600",
# Line break before binary operator
"W503",
# Found multiline conditions
"WPS337",
]
per-file-ignores = [
# Use of assert detected.
"tests/*.py:S101",
# Imported but unused
# Unable to detect undefined names
# Found vague import that may cause confusion: *
# Found local folder import
# Found protected module import
"src/pre_commit_download/hooks.py:F401,F403,WPS300,WPS436,WPS347",
]
exclude = [
"venv",
".venv",
".temp",
".eggs",
"build",
"dist",
"__pycache__",
".git",
".nox",
]
[tool.isort]
force_sort_within_sections = true
lexicographical = true
order_by_type = false
group_by_package = true
include_trailing_comma = true
multi_line_output = 3
lines_after_imports = 2
[tool.black]
line-length = 80
target-version = ["py38"]
[tool.mypy]
exclude = "(^build|^tests)"
[[tool.mypy.overrides]]
module = [
"setuptools.*",
"nox",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = [
"src",
]
[tool.setuptools.package-data]
"*" = ["py.typed"]