Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pyupgrade use from pre-commit #1352

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ repos:
- id: flynt
exclude: "asdf/extern/.*"

- repo: https://github.com/asottile/pyupgrade
rev: 'v3.3.1'
hooks:
- id: pyupgrade
args: ["--py38-plus"]
exclude: "asdf/extern/.*"

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.243'
hooks:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ line_length = 120
extend_skip_glob = ["asdf/extern/*", ".eggs/*", ".tox/*"]

[tool.ruff]
target-version = "py38"
line-length = 120
select = ["ALL"]
extend-ignore = [
Expand All @@ -182,7 +183,6 @@ extend-ignore = [
"DTZ", # flake8-datetimez
"PTH", # flake8-use-pathlib
# Individually ignored checks
"B905", # Requires python 3.10 (use zip strict)
"PIE810", # Call `startswith` once with a `tuple`
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
Expand Down