Skip to content

Commit 6514929

Browse files
adding pyupgrade to precommit
1 parent a8c3a68 commit 6514929

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/scripts/publish_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
aws_secret_access_key=SECRET_ACCESS_KEY,
2323
)
2424

25-
with open(MANIFEST_FILE, "r") as f:
25+
with open(MANIFEST_FILE) as f:
2626
manifest_data = json.load(f)
2727

2828
needs_update = False

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ repos:
2121
args: ["--maxkb=1024"]
2222
- id: debug-statements
2323

24+
# upgrade Python syntax to the latest version
25+
- repo: https://github.com/asottile/pyupgrade
26+
rev: v3.20.0
27+
hooks:
28+
- id: pyupgrade
29+
2430
# Python Linting & Formatting with Ruff
2531
- repo: https://github.com/astral-sh/ruff-pre-commit
2632
rev: v0.12.1

0 commit comments

Comments
 (0)