mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 11:40:32 +00:00
Add pyupgrade pre-commit hook + modernize python code (#2611)
This commit is contained in:
parent
272985f1bb
commit
effd0c4911
18 changed files with 47 additions and 45 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue