-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (88 loc) · 2.29 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "pre_commit_text"
description = "Some text hooks for pre-commit."
authors = [
{ name="Raphael Boidol", email="boidolr@users.noreply.github.com" },
]
urls = {"Respository" = "https://github.com/boidolr/pre-commit-text"}
license = {file = "LICENSE"}
readme = "README.md"
version = "1.2.17"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
requires-python = ">=3.10,<4"
dependencies = [
"ruamel.yaml==0.18.6",
]
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"tox",
"tox-uv",
]
tests = [
"pytest",
"pytest-clarity",
"pytest-ruff",
"pytest-mypy",
]
[project.scripts]
format-yaml = "pre_commit_text.format_yaml:main"
search-replace = "pre_commit_text.search_replace:main"
replace-tabs = "pre_commit_text.replace_tabs:main"
[tool.setuptools]
packages = ["pre_commit_text"]
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", "W", # Pycodestyle
"UP", # pyupgrade
"FURB", # refurb
"S", # flake8-bandit
"C4", # flake8-comprehensions
"G", # flake8-logging-format
"ANN", # flake8-annotations
# "ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
"RET", # flake8-return
"PTH", # flake8-use-pathlib
"TID252", # flake8-tidy-imports (relative-imports)
"PERF", # Perflint
"FLY", # flynt
"I", # isort
"RUF100" # Unneeded noqa
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101"]
[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--mypy --ruff"
filterwarnings = [
"error",
]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false