-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (63 loc) · 2.14 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "check-pre-commit-config-frozen"
version = "0.1.0"
description = "Ensure correct `frozen: x.x.x` comments in `pre-commit-config.yaml`"
authors = ["yfprojects <[email protected]>"]
license = "MIT"
repository = "http://github.com/real-yfprojects/check-pre-commit-config"
keywords = ["pre-commit", "linter", "development"]
classifiers = [
'Intended Audience :: Developers',
'Topic :: Software Development :: Quality Assurance',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.7" # doesn't conform to semver
ruamel-yaml = ">=0.17.26" # doesn't conform to semver
rich = { version = "^13.7", optional = true }
pre-commit = { version = "^3.5", optional = true, python = ">=3.8" }
[tool.poetry.extras]
pre-commit = ["pre-commit"]
colour = ["rich"]
# includes all extras above
all = ["pre-commit", "rich"]
[tool.poetry.scripts]
check-pre-commit-config-frozen = "check_pre_commit_config_frozen:run"
[tool.poetry.group.lint.dependencies]
mypy = "^1.3.0"
ruff = "^0.0.278"
black = "^23.3.0"
[tool.black]
target-version = ['py37']
[tool.ruff]
# Enable flake8-print, isort, pyflakes, pydocstyle, pycodestyle, flynt, ruff
select = ["T", "I", "F", "D", "E", "W", "FLY", "RUF", "PL"]
fixable = ["I"]
ignore = [
"D202",
"D203",
"D205",
"D401",
"D212",
"E501",
"PLR0913",
"PLR0912",
"PLR0915",
]
# Same as Black.
line-length = 88
# Assume Python 3.10.
target-version = "py37"
# Allow unused variables when underscore-prefixed or of form `dummyN`.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|dummy\\d*)$"