Skip to content

Commit

Permalink
猬嗭笍馃獫 Update ruff and use automatic target-version inference (#255)
Browse files Browse the repository at this point in the history
## Description

This small PR updates the configuration of the ruff pre-commit hook.
Since `v0.255`, the `target-version` configuration property can be
inferred directly, which allows to simplify the configuration.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.
  • Loading branch information
burgholzer committed Mar 15, 2023
2 parents 1599eac + 025171c commit 8f54d34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repos:

# Run ruff (subsumes pyupgrade, isort, flake8+plugins, and more)
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254
rev: v0.0.256
hooks:
- id: ruff
args: ["--fix"]
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ ignore = [
"PLR2004", # Magic values
"PLR0913", # Too many arguments
]
target-version = "py38"

# Exclude a variety of commonly ignored directories.
exclude = [
Expand Down

0 comments on commit 8f54d34

Please sign in to comment.