forked from PFCCLab/google-yamlfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (76 loc) · 1.7 KB
/
pyproject.toml
File metadata and controls
88 lines (76 loc) · 1.7 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
[project]
name = "google-yamlfmt"
version = "0.17.0-alpha.1"
description = "A tool for formatting YAML files, yamlfmt from Google: https://github.com/google/yamlfmt"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
dependencies = []
[project.urls]
Homepage = "https://github.com/PFCCLab/google-yamlfmt"
Repository = "https://github.com/PFCCLab/google-yamlfmt"
Issues = "https://github.com/PFCCLab/google-yamlfmt/issues"
[dependency-groups]
dev = ["hatchling>=1.27.0"]
[project.scripts]
yamlfmt = "yamlfmt.__main__:main"
[tool.hatch.build.targets.wheel]
packages = ["src/yamlfmt"]
[tool.hatch.build.hooks]
vcs.version-file = "src/yamlfmt/_version.py"
[tool.hatch.build.hooks.custom]
[tool.hatch]
version.source = "vcs"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# Isort
"I",
# Comprehensions
"C4",
# Debugger
"T100",
# Pyupgrade
"UP",
# Flake8-pyi
"PYI",
# Bugbear
"B",
# Pylint
"PLE",
# Flake8-simplify
"SIM101",
# Flake8-use-pathlib
"PTH",
# Pygrep-hooks
"PGH004",
# Flake8-type-checking
"TC",
# Flake8-raise
"RSE",
# Refurb
"FURB",
# Flake8-future-annotations
"FA",
# Yesqa
"RUF100",
]
ignore = [
"E501", # line too long, duplicate with ruff fmt
"F401", # imported but unused, duplicate with pyright
"F841", # local variable is assigned to but never used, duplicate with pyright
"UP038", # It will cause the performance regression on python3.10
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true