-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
162 lines (136 loc) · 3.8 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "check-spdx-header"
dynamic = ["version"]
description = "pre-commit hook to validate spdx license comments"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [{ name = "linuxdaemon", email = "linuxdaemon.irc@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["click", "tomli ; python_version < '3.11'"]
[project.urls]
Documentation = "https://github.com/TotallyNotRobots/check-spdx-header#readme"
Issues = "https://github.com/TotallyNotRobots/check-spdx-header/issues"
Source = "https://github.com/TotallyNotRobots/check-spdx-header"
[project.scripts]
check-spdx-header = "check_spdx_header.cli:check_spdx_header"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/check_spdx_header/_version.py"
[tool.hatch.envs.default]
dependencies = ["pre-commit", "pytest"]
[tool.hatch.envs.hatch-test]
default-args = ["tests", "src"]
extra-args = ["-vv"]
[tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
cov-combine = "coverage combine"
cov-report = ["coverage report --show-missing --skip-covered", "coverage xml"]
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/check_spdx_header tests}"
[tool.coverage.run]
source_pkgs = ["check_spdx_header", "tests"]
branch = true
# parallel = true
omit = ["src/check_spdx_header/_version.py"]
[tool.coverage.paths]
check_spdx_header = [
"src/check_spdx_header",
"*/check-spdx-header/src/check_spdx_header",
]
tests = ["tests", "*/check-spdx-header/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.nitpick]
style = ["gh://TotallyNotRobots/nitpick/app-style-3.8.toml"]
[tool.isort]
line_length = 80
profile = "black"
float_to_top = true
[tool.black]
line-length = 80
target-version = ["py38"]
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
show_error_codes = true
warn_unused_ignores = true
warn_redundant_casts = true
extra_checks = true
strict = true
disallow_untyped_calls = true
disallow_untyped_defs = true
allow_redefinition = false
[tool.flynt]
transform-concats = true
transform-joins = true
line-length = 120
aggressive = true
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "scm"
update_changelog_on_bump = true
major_version_zero = true
[tool.check-spdx-header]
headers = ["2024-present linuxdaemon <linuxdaemon.irc@gmail.com>"]
[tool.ruff]
line-length = 80
target-version = 'py38'
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
skip-magic-trailing-comma = true
[tool.ruff.lint]
ignore-init-module-imports = false
extend-safe-fixes = [
"EM101",
"EM102",
"EM103",
"F401",
"FLY002",
"TCH001",
"TCH002",
"TRY400",
"SIM117",
"SIM108",
"ANN201",
"D415",
"D200",
"UP006",
"UP007",
"FA102",
]
extend-ignore = ["D"]
# select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # Allow asserts in tests
]
[tool.ruff.lint.pycodestyle]
max-line-length = 100
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.autoflake]
remove-all-unused-imports = true
in-place = true