Spaces:
Runtime error
Runtime error
| [tool.isort] | |
| line_length = 88 | |
| profile = "black" | |
| [tool.bandit] | |
| target = ["test", "supervision"] | |
| tests = ["B201", "B301", "B318", "B314", "B303", "B413", "B412", "B410"] | |
| [tool.autoflake] | |
| check = true | |
| imports = ["cv2", "supervision"] | |
| [tool.black] | |
| target-version = ["py38"] | |
| line-length = 88 | |
| include = '\.pyi?$' | |
| exclude = ''' | |
| /( | |
| \.git | |
| | \.hg | |
| | \.mypy_cache | |
| | \.tox | |
| | \.venv | |
| | _build | |
| | buck-out | |
| | build | |
| | dist | |
| | docs | |
| )/ | |
| ''' | |
| [tool.ruff] | |
| target-version = "py38" | |
| # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. | |
| select = ["E", "F"] | |
| ignore = [] | |
| # Allow autofix for all enabled rules (when `--fix`) is provided. | |
| fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"] | |
| unfixable = [] | |
| # 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", | |
| "yarn-error.log", | |
| "yarn.lock", | |
| "docs", | |
| ] | |
| # Same as Black. | |
| line-length = 88 | |
| indent-width = 4 | |
| # Allow unused variables when underscore-prefixed. | |
| dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | |
| [tool.ruff.flake8-quotes] | |
| inline-quotes = "double" | |
| multiline-quotes = "double" | |
| docstring-quotes = "double" | |
| [tool.ruff.pydocstyle] | |
| convention = "google" | |
| [tool.ruff.per-file-ignores] | |
| "__init__.py" = ["E402","F401"] | |
| "supervision/assets/list.py" = ["E501"] | |
| [tool.ruff.lint.mccabe] | |
| # Flag errors (`C901`) whenever the complexity level exceeds 5. | |
| max-complexity = 20 | |
| [tool.ruff.pylint] | |
| max-args = 20 | |
| [tool.ruff.format] | |
| # Like Black, use double quotes for strings. | |
| quote-style = "double" | |
| # Like Black, indent with spaces, rather than tabs. | |
| indent-style = "space" | |
| # Like Black, respect magic trailing commas. | |
| skip-magic-trailing-comma = false | |
| # Like Black, automatically detect the appropriate line ending. | |
| line-ending = "auto" | |