Skip to content

Commit

Permalink
Switch from flake8 to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
arekm committed Sep 4, 2024
1 parent 2e26325 commit 617847e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 37 deletions.
44 changes: 8 additions & 36 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^setup.py
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -12,48 +12,20 @@ repos:
- id: check-merge-conflict
- id: fix-encoding-pragma
args: ["--remove"]
- repo: https://github.com/OctoPrint/codemods
rev: "0.6.3"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: codemod_batch
args:
[
"--check",
"not_in",
"--check",
"detect_past_builtins_imports",
"--ignore",
"setup.py"
]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
additional_dependencies:
- click==8.0.4
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--config=setup.cfg]
additional_dependencies:
- flake8-bugbear==22.3.20
- importlib-metadata<5.0
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v2.7.1
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.8.0
rev: v8.35.0
hooks:
- id: eslint
additional_dependencies:
- [email protected]
- [email protected]
files: \.js$
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
Expand Down
1 change: 0 additions & 1 deletion octoprint_PrusaETAOverride/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def parse_line_m114(self, line):
def parse_line(self, comm, line, *args, **kwargs):
m = self.parse_line_m73(line)
if m:

# Prusa firmware supports different modes
if "mode" in m:
mode = m["mode"]
Expand Down

0 comments on commit 617847e

Please sign in to comment.