-
Notifications
You must be signed in to change notification settings - Fork 311
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (91 loc) · 2.58 KB
/
pyproject.toml
File metadata and controls
101 lines (91 loc) · 2.58 KB
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
[project]
name = "yamllint"
description = "A linter for YAML files."
readme = {file = "README.rst", content-type = "text/x-rst"}
requires-python = ">=3.10"
license = "GPL-3.0-or-later"
authors = [{name = "Adrien Vergé"}]
keywords = ["yaml", "lint", "linter", "syntax", "checker"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
]
dependencies = [
"pathspec >= 1.0.0",
"pyyaml",
]
dynamic = ["version"]
[project.scripts]
yamllint = "yamllint.cli:run"
[project.urls]
homepage = "https://github.com/adrienverge/yamllint"
repository = "https://github.com/adrienverge/yamllint"
documentation = "https://yamllint.readthedocs.io"
[dependency-groups]
dev = [
"doc8",
"flake8",
"flake8-import-order",
"rstcheck[sphinx]",
"ruff",
"sphinx",
"sphinx_rtd_theme",
]
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 77.0.3"]
[tool.setuptools]
packages = ["yamllint", "yamllint.conf", "yamllint.rules"]
[tool.setuptools.package-data]
yamllint = ["conf/*.yaml"]
[tool.setuptools.dynamic]
version = {attr = "yamllint.__version__"}
[tool.ruff]
line-length = 79
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"EXE",
"FA",
"ISC",
"LOG",
"G",
"PIE",
"PYI",
"SIM",
"FLY",
"I",
"PERF",
"W",
"PGH",
"PLC",
"PLE",
"UP",
"FURB",
"RUF",
]
ignore = [
"B028", # No explicit `stacklevel` keyword argument found
"SIM102", # Use a single `if` statement instead of nested `if` statements
"SIM103", # Return the negated condition directly
"SIM105", # Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
"SIM108", # Use ternary operator instead of `if`-`else`-block
"SIM114", # Combine `if` branches using logical `or` operator
"SIM117", # Use a single `with` statement with multiple contexts
"FURB105", # Unnecessary empty string passed to `print`
"RUF001", # String contains ambiguous Unicode characters
"RUF002", # Docstring contains ambiguous Unicode characters
"RUF003", # Comment contains ambiguous Unicode characters
"RUF005", # Consider unpacking instead of concatenation
"RUF100", # Unused `noqa` directive
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-third-party = ["tests"]