-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (74 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
90 lines (74 loc) · 1.96 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "the-agent"
version = "5.7.0"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.ruff]
# Python 3.12: keep in sync with Pipfile
target-version = "py312"
line-length = 140
indent-width = 4
# Exclude a variety of commonly ignored directories
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
# Enable preview rules for whitespace enforcement
preview = true
# Enable the trailing comma rule along with some other common rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"COM812", # missing-trailing-comma
"Q", # flake8-quotes (enforce quote style)
]
# Specific rules for spacing around equals
extend-select = [
"E225", # missing-whitespace-around-operator (spaces around = in assignments and comparisons)
"E252", # missing-whitespace-around-parameter-equals (spaces around = in annotated function parameters)
]
ignore = [
"E251", # unexpected-spaces-around-keyword-parameter-equals (we want spaces)
"E266", # too-many-leading-hashes-for-block-comment (we want ### section headers ###)
"Q003", # Change outer quotes to avoid escaping inner quotes
]
# Allow fix for all enabled rules (when `--fix`) is provided
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces, rather than tabs
indent-style = "space"
# Respect magic trailing commas
skip-magic-trailing-comma = false
# Automatically detect the appropriate line ending
line-ending = "auto"