Skip to content

Commit

Permalink
Merge pull request #581 from sanders41/ruff
Browse files Browse the repository at this point in the history
Bump ruff 0.7.4 -> 0.8.0 and add RUF022 and RUF023
  • Loading branch information
sanders41 authored Nov 22, 2024
2 parents 5318da2 + 6ebe779 commit 01ffa4e
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 171 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: mypy
files: camel_converter/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dev-dependencies = [
"pre-commit==4.0.1",
"pytest==8.3.3",
"pytest-cov==6.0.0",
"ruff==0.7.4",
"ruff==0.8.0",
]

[tool.hatch.version]
Expand All @@ -61,7 +61,18 @@ fix = true
target-version = "py39"

[tool.ruff.lint]
select=["E", "B", "F", "T201", "T203", "I001", "UP"]
select=[
"E", # pycodestyle
"B", # flake8-bugbear
"W", # Warning
"F", # pyflakes
"UP", # pyupgrade
"I001", # unsorted-imports
"T201", # Don't allow print
"T203", # Don't allow pprint
"RUF022", # Unsorted __all__
"RUF023", # Unforted __slots__
]
ignore=[
# Recommened ignores by ruff when using formatter
"E501",
Expand Down
Loading

0 comments on commit 01ffa4e

Please sign in to comment.