Add pyupgrade pre-commit hook + modernize python code (#2611)

This commit is contained in:
Asher Foa
2025-06-10 14:52:38 -04:00
committed by GitHub
parent 272985f1bb
commit effd0c4911
18 changed files with 47 additions and 45 deletions

View File

@@ -51,6 +51,14 @@ repos:
- id: python-check-mock-methods
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
exclude: |
(?x)(
^skyvern/client/.*
)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
hooks:
@@ -61,7 +69,7 @@ repos:
- types-requests
- types-cachetools
- alembic
- "sqlalchemy[mypy]"
- 'sqlalchemy[mypy]'
- types-PyYAML
- types-aiofiles
exclude: |
@@ -91,7 +99,7 @@ repos:
# pass_filenames: false
# always_run: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8" # Use the sha or tag you want to point at
rev: 'v4.0.0-alpha.8' # Use the sha or tag you want to point at
hooks:
- id: prettier
types: [javascript]