diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fee2cd1..82e8946 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ef8a84c..589f091 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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