Skip to content

Commit

Permalink
lint/ruff: replace pyupgrade with rule "UP" (Lightning-AI#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Mar 6, 2024
1 parent 9d76f3f commit caf470b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ repos:
args: ["--maxkb=100", "--enforce-all"]
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
name: Upgrade code

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lint.select = [
"D", # see: https://pypi.org/project/pydocstyle
"N", # see: https://pypi.org/project/pep8-naming
"S", # see: https://pypi.org/project/flake8-bandit
"UP", # see: https://docs.astral.sh/ruff/rules/#pyupgrade-up
]
lint.extend-select = [
"A", # see: https://pypi.org/project/flake8-builtins
Expand Down

0 comments on commit caf470b

Please sign in to comment.