Skip to content

Commit

Permalink
Fix and bump pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate committed Aug 12, 2024
1 parent eec7741 commit c9a28e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ repos:
# types: [file]

# ----- Formatting ---------------------------------------------------------------------------->
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.2
hooks:
- id: reorder-python-imports
args:
- --py38-plus
- --add-import=from __future__ import annotations
# - repo: https://github.com/asottile/reorder_python_imports
# rev: v3.13.0
# hooks:
# - id: reorder-python-imports
# args:
# - --py310-plus
# - --add-import=from __future__ import annotations

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.17.0
hooks:
- id: pyupgrade
name: Rewrite Code to be Py3.8+
name: Rewrite Code to be Py3.10+
args: [
--py37-plus
--py310-plus
]

- repo: https://github.com/psf/black
Expand Down
2 changes: 1 addition & 1 deletion requirements/tools.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/tools.txt --resolver=backtracking requirements/tools.in
Expand Down
1 change: 1 addition & 0 deletions tools/ci.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
GitHub Actions CI Utilities.
"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions tools/images.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
AWS EC2 AMI Related Commands.
"""

from __future__ import annotations

import json
Expand Down

0 comments on commit c9a28e6

Please sign in to comment.