참고소스 수정본
This commit is contained in:
62
참고/instructor-main/.ruff.toml
Normal file
62
참고/instructor-main/.ruff.toml
Normal file
@@ -0,0 +1,62 @@
|
||||
# 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",
|
||||
]
|
||||
|
||||
# Same as Black.
|
||||
line-length = 88
|
||||
output-format = "grouped"
|
||||
|
||||
target-version = "py39"
|
||||
|
||||
[lint]
|
||||
select = [
|
||||
# bugbear rules
|
||||
"B",
|
||||
# remove unused imports
|
||||
"F401",
|
||||
# bare except statements
|
||||
"E722",
|
||||
# unused arguments
|
||||
"ARG",
|
||||
# pyupgrade
|
||||
"UP",
|
||||
]
|
||||
ignore = [
|
||||
# mutable defaults
|
||||
"B006",
|
||||
"B018",
|
||||
]
|
||||
|
||||
unfixable = [
|
||||
# disable auto fix for print statements
|
||||
"T201",
|
||||
"T203",
|
||||
]
|
||||
|
||||
[lint.extend-per-file-ignores]
|
||||
"instructor/distil.py" = ["ARG002"]
|
||||
"tests/test_distil.py" = ["ARG001"]
|
||||
"tests/test_patch.py" = ["ARG001"]
|
||||
"examples/task_planner/task_planner_topological_sort.py" = ["ARG002"]
|
||||
"examples/citation_with_extraction/main.py" = ["ARG001"]
|
||||
Reference in New Issue
Block a user