Skip to content

Commit

Permalink
style(flake): 🔥 flake8 removed
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <[email protected]>
  • Loading branch information
onuralpszr committed Dec 13, 2023
1 parent 5f11ef4 commit 72f2c98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 73 deletions.
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ repos:



- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
name: Flake8 Checks
entry: flake8
additional_dependencies: [Flake8-pyproject]


- repo: https://github.com/PyCQA/bandit
rev: '1.7.6'
hooks:
Expand Down
51 changes: 1 addition & 50 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,13 @@ ruff = ">=0.0.280,<0.1.8"
isort = "^5.12.0"
mypy = "^1.4.1"
pre-commit = "^3.3.3"
flake8 = { version = "*", python = ">=3.8.1" }
tox = "^4.11.4"


[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.1.4"
mkdocstrings = {extras = ["python"], version = ">=0.20,<0.25"}

[tool.flake8]
exclude = ".venv,build,dist,docs,.git,.tox,.eggs"
max-complexity = 10
max-line-length = 88
extend-ignore = """
W503,
E203,
E701,
C901,
"""
per-file-ignores = """
__init__.py: F401
"""

[tool.isort]
line_length = 88
Expand Down Expand Up @@ -169,6 +155,10 @@ convention = "google"
"__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
Expand Down

0 comments on commit 72f2c98

Please sign in to comment.