Spaces:
Sleeping
Sleeping
Create pyproject.toml
Browse files- pyproject.toml +109 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[tool.isort]
|
| 2 |
+
line_length = 88
|
| 3 |
+
profile = "black"
|
| 4 |
+
|
| 5 |
+
[tool.bandit]
|
| 6 |
+
target = ["test", "superverse"]
|
| 7 |
+
tests = ["B201", "B301", "B318", "B314", "B303", "B413", "B412", "B410"]
|
| 8 |
+
|
| 9 |
+
[tool.autoflake]
|
| 10 |
+
check = true
|
| 11 |
+
imports = ["cv2", "superverse"]
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
[tool.black]
|
| 15 |
+
target-version = ["py38"]
|
| 16 |
+
line-length = 88
|
| 17 |
+
include = '\.pyi?$'
|
| 18 |
+
exclude = '''
|
| 19 |
+
/(
|
| 20 |
+
\.git
|
| 21 |
+
| \.hg
|
| 22 |
+
| \.mypy_cache
|
| 23 |
+
| \.tox
|
| 24 |
+
| \.venv
|
| 25 |
+
| _build
|
| 26 |
+
| buck-out
|
| 27 |
+
| build
|
| 28 |
+
| dist
|
| 29 |
+
| docs
|
| 30 |
+
)/
|
| 31 |
+
'''
|
| 32 |
+
|
| 33 |
+
[tool.ruff]
|
| 34 |
+
target-version = "py38"
|
| 35 |
+
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
| 36 |
+
select = ["E", "F"]
|
| 37 |
+
ignore = []
|
| 38 |
+
|
| 39 |
+
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
| 40 |
+
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"]
|
| 41 |
+
unfixable = []
|
| 42 |
+
|
| 43 |
+
# Exclude a variety of commonly ignored directories.
|
| 44 |
+
exclude = [
|
| 45 |
+
".bzr",
|
| 46 |
+
".direnv",
|
| 47 |
+
".eggs",
|
| 48 |
+
".git",
|
| 49 |
+
".git-rewrite",
|
| 50 |
+
".hg",
|
| 51 |
+
".mypy_cache",
|
| 52 |
+
".nox",
|
| 53 |
+
".pants.d",
|
| 54 |
+
".pytype",
|
| 55 |
+
".ruff_cache",
|
| 56 |
+
".svn",
|
| 57 |
+
".tox",
|
| 58 |
+
".venv",
|
| 59 |
+
"__pypackages__",
|
| 60 |
+
"_build",
|
| 61 |
+
"buck-out",
|
| 62 |
+
"build",
|
| 63 |
+
"dist",
|
| 64 |
+
"node_modules",
|
| 65 |
+
"venv",
|
| 66 |
+
"yarn-error.log",
|
| 67 |
+
"yarn.lock",
|
| 68 |
+
"docs",
|
| 69 |
+
]
|
| 70 |
+
|
| 71 |
+
# Same as Black.
|
| 72 |
+
line-length = 88
|
| 73 |
+
indent-width = 4
|
| 74 |
+
|
| 75 |
+
# Allow unused variables when underscore-prefixed.
|
| 76 |
+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
| 77 |
+
|
| 78 |
+
[tool.ruff.flake8-quotes]
|
| 79 |
+
inline-quotes = "double"
|
| 80 |
+
multiline-quotes = "double"
|
| 81 |
+
docstring-quotes = "double"
|
| 82 |
+
|
| 83 |
+
[tool.ruff.pydocstyle]
|
| 84 |
+
convention = "google"
|
| 85 |
+
|
| 86 |
+
[tool.ruff.per-file-ignores]
|
| 87 |
+
"__init__.py" = ["E402","F401"]
|
| 88 |
+
"superverse/assets/list.py" = ["E501"]
|
| 89 |
+
|
| 90 |
+
[tool.ruff.lint.mccabe]
|
| 91 |
+
# Flag errors (`C901`) whenever the complexity level exceeds 5.
|
| 92 |
+
max-complexity = 20
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
[tool.ruff.pylint]
|
| 96 |
+
max-args = 20
|
| 97 |
+
|
| 98 |
+
[tool.ruff.format]
|
| 99 |
+
# Like Black, use double quotes for strings.
|
| 100 |
+
quote-style = "double"
|
| 101 |
+
|
| 102 |
+
# Like Black, indent with spaces, rather than tabs.
|
| 103 |
+
indent-style = "space"
|
| 104 |
+
|
| 105 |
+
# Like Black, respect magic trailing commas.
|
| 106 |
+
skip-magic-trailing-comma = false
|
| 107 |
+
|
| 108 |
+
# Like Black, automatically detect the appropriate line ending.
|
| 109 |
+
line-ending = "auto"
|