Skip to content

Commit

Permalink
Bump Ruff to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Nov 22, 2024
1 parent 9588834 commit 83a73e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9 # Must match requirements-dev.txt
rev: v0.8.0 # Must match requirements-dev.txt
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enableTypeIgnoreComments = false
reportMissingTypeStubs = "warning"
# Extra runtime safety
reportUnnecessaryComparison = "warning"
# Using Flake8/Ruff instead. Name is already grayed out and red squiggle looks like a mistyped import
# Using Ruff instead. Name is already grayed out and red squiggle looks like a mistyped import
reportUnusedImport = "none"

###
Expand Down
7 changes: 2 additions & 5 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ ignore = [
"SIM105", # flake8-simplify: use-contextlib-suppress
# Negative performance impact and more verbose https://github.com/astral-sh/ruff/issues/7871
"UP038", # non-pep604-isinstance
# deprecated and is actually slower for cases relevant to unpacking: https://github.com/astral-sh/ruff/issues/12754
"UP027", # unpacked-list-comprehension
# Checked by type-checker (pyright/mypy)
"ANN", # flake-annotations
"PGH003", # blanket-type-ignore
"TCH", # flake8-type-checking
"TC", # flake8-type-checking
# Already shown by Pylance, checked by pyright, and can be caused by overloads.
"ARG002", # Unused method argument
# We want D213: multi-line-summary-second-line and D211: no-blank-line-before-class
Expand All @@ -60,7 +58,7 @@ ignore = [
"TD003", # flake8-todos: missing-todo-link

# False-positives
"TCH004", # https://github.com/astral-sh/ruff/issues/3821
"TC004", # https://github.com/astral-sh/ruff/issues/3821

###
# Conflict with formatter (you can remove this section if you don't use Ruff as a formatter)
Expand Down Expand Up @@ -131,7 +129,6 @@ max-branches = 15
"F811", # Re-exports false positives
# The following can't be controlled for external libraries:
"A", # Shadowing builtin names
"E741", # ambiguous variable name
"F403", # `from . import *` used; unable to detect undefined names
"FBT", # flake8-boolean-trap
"ICN001", # unconventional-import-alias
Expand Down
2 changes: 1 addition & 1 deletion scripts/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-r requirements.txt
#
# Linters & Formatters
ruff>=0.6.9 # Pre-commit fix # Must match .pre-commit-config.yaml
ruff>=0.8.0 # Pre-commit fix # Must match .pre-commit-config.yaml
#
# Types
types-keyboard
Expand Down

0 comments on commit 83a73e9

Please sign in to comment.