Skip to content

Commit

Permalink
Use Python 3.11 in pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yrob committed Aug 27, 2024
1 parent 76e1aa9 commit 98c6cdf
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,35 @@
# Supported hooks: https://pre-commit.com/hooks.html
# Running "make format" fixes most issues for you
default_language_version:
python: python3.9
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: check-json
- id: check-toml
- id: check-yaml
args: [--unsafe]
args:
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-docstring-first # Checks a common error of defining a docstring
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args:
- --py39-plus
- --py310-plus
- --keep-runtime-typing
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.18.0"
rev: "1.20.0"
hooks:
- id: django-upgrade
args:
- --target-version=3.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.5
hooks:
- id: ruff
args:
Expand Down

0 comments on commit 98c6cdf

Please sign in to comment.