mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 06:46:15 +00:00
b583309818
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
63 lines
1.0 KiB
TOML
63 lines
1.0 KiB
TOML
# 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",
|
|
]
|
|
ignore = [
|
|
# mutable defaults
|
|
"B006",
|
|
"B018",
|
|
]
|
|
|
|
unfixable = [
|
|
# disable auto fix for print statements
|
|
"T201",
|
|
"T203",
|
|
]
|
|
ignore-init-module-imports = true
|
|
|
|
[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"]
|
|
|