mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-18 21:25:11 +01:00
add ruff and black configurations under pyproject.toml
This commit is contained in:
59
pyproject.toml
Normal file
59
pyproject.toml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# https://beta.ruff.rs/docs/configuration/#using-rufftoml
|
||||||
|
[tool.ruff]
|
||||||
|
select = ["F", "E", "W", "I001"]
|
||||||
|
line-length = 90
|
||||||
|
show-fixes = false
|
||||||
|
target-version = "py311"
|
||||||
|
task-tags = ["TODO", "FIXME"]
|
||||||
|
exclude = [
|
||||||
|
".bzr",
|
||||||
|
".direnv",
|
||||||
|
".eggs",
|
||||||
|
".git",
|
||||||
|
".ruff_cache",
|
||||||
|
".svn",
|
||||||
|
".tox",
|
||||||
|
".venv",
|
||||||
|
"__pypackages__",
|
||||||
|
"_build",
|
||||||
|
"buck-out",
|
||||||
|
"build",
|
||||||
|
"dist",
|
||||||
|
"node_modules",
|
||||||
|
"venv",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.ruff.isort]
|
||||||
|
known-first-party = []
|
||||||
|
known-third-party = []
|
||||||
|
section-order = [
|
||||||
|
"future",
|
||||||
|
"standard-library",
|
||||||
|
"third-party",
|
||||||
|
"first-party",
|
||||||
|
"local-folder",
|
||||||
|
]
|
||||||
|
combine-as-imports = true
|
||||||
|
split-on-trailing-comma = false
|
||||||
|
lines-between-types = 1
|
||||||
|
|
||||||
|
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html
|
||||||
|
[tool.black]
|
||||||
|
line-length = 90
|
||||||
|
target-version = ["py311"]
|
||||||
|
include = '\.pyi?$'
|
||||||
|
exclude = '''
|
||||||
|
(
|
||||||
|
/(
|
||||||
|
\.direnv
|
||||||
|
| \.eggs
|
||||||
|
| \.git
|
||||||
|
| \.tox
|
||||||
|
| \.venv
|
||||||
|
| _build
|
||||||
|
| build
|
||||||
|
| dist
|
||||||
|
| venv
|
||||||
|
)/
|
||||||
|
)
|
||||||
|
'''
|
||||||
Reference in New Issue
Block a user