mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 07:30:58 +00:00
Remove ruff
This commit is contained in:
parent
6c796b6f03
commit
106594f970
2 changed files with 0 additions and 44 deletions
|
@ -9,13 +9,6 @@ repos:
|
|||
name: " ✔️ Check TOML"
|
||||
- id: 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:
|
||||
autofix_commit_msg: 🎨 [pre-commit] Auto format
|
||||
|
|
|
@ -129,36 +129,6 @@ addopts = [
|
|||
"--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 = [
|
||||
"E501", # line too long
|
||||
"A003", # Class attribute is shadowing a python builtin
|
||||
|
@ -167,10 +137,3 @@ ignore = [
|
|||
"T201", "T203", # remove print and pprint
|
||||
"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
|
||||
|
|
Loading…
Reference in a new issue