Skip to content

Commit

Permalink
ruff issue fix
Browse files Browse the repository at this point in the history
* pre-commit update
  • Loading branch information
ondratu committed Apr 10, 2024
1 parent 573e379 commit 8e551b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
# hooks:
# - id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -15,11 +15,11 @@ repos:
# hooks:
# - id: pylint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.280'
rev: 'v0.3.5'
hooks:
- id: ruff
args: [--fix]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
6 changes: 3 additions & 3 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
select = [
lint.select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
Expand Down Expand Up @@ -29,7 +29,7 @@ select = [
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
# "Q", # flake8-quotes - error in version 0.3.5 https://github.com/astral-sh/ruff/issues/10724
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
Expand All @@ -48,7 +48,7 @@ select = [
"NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = [
lint.ignore = [
"S101", # Use of `assert` detected
"S105", # Possible hardcoded password assigned to: "TOKEN"
"Q000", # Single quotes found but double quotes preferred
Expand Down

0 comments on commit 8e551b1

Please sign in to comment.