Remove ruff

This commit is contained in:
Piero Toffanin 2024-09-21 12:04:20 -04:00
parent 6c796b6f03
commit 106594f970
2 changed files with 0 additions and 44 deletions

View file

@ -9,13 +9,6 @@ repos:
name: " ✔️ Check TOML" name: " ✔️ Check TOML"
- id: check-json - id: check-json
name: " ✔️ Check JSON" name: " ✔️ Check JSON"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.277
hooks:
- id: ruff
name: " ⚡️ Formatting code with Ruff"
args:
- --fix
ci: ci:
autofix_commit_msg: 🎨 [pre-commit] Auto format autofix_commit_msg: 🎨 [pre-commit] Auto format

View file

@ -129,36 +129,6 @@ addopts = [
"--cov-report=term-missing", "--cov-report=term-missing",
] ]
# https://beta.ruff.rs/docs/rules
[tool.ruff]
src = ["libretranslate", "scripts"]
target-version = "py38"
line-length = 136
select = [
"I", # isort
"N", # pep8-naming
"S", # bandit
"A", # flake8-builtins
"YTT", # flake8-2020
"B", # flake8-bugbear
# "C", # flake8-comprehensions
"ICN", # flake8-import-conventions
# "SIM", # flake8-simplify
"TID", # flake8-tidy-imports
# "Q", # flake8-quotes
# "FBT", # flake8-boolean-trap
"F", # pyflakes
"UP", # pyupgrade
# "E", # pycodestyle errors
# "W", # pycodestyle warnings
# "PLC", # pylint convention
"PLE", # pylint error
# "PLR", # pylint refactor
# "PLW", # pylint warning
# "RUF", # ruff specific
]
ignore = [ ignore = [
"E501", # line too long "E501", # line too long
"A003", # Class attribute is shadowing a python builtin "A003", # Class attribute is shadowing a python builtin
@ -167,10 +137,3 @@ ignore = [
"T201", "T203", # remove print and pprint "T201", "T203", # remove print and pprint
"E402", # Module level import not at top of file "E402", # Module level import not at top of file
] ]
[tool.ruff.per-file-ignores]
"__init__.py" = ["I", "F401"] # module imported but unused
[tool.ruff.mccabe]
max-complexity = 12