Skip to content

Commit

Permalink
Update Python version for the pre-commit hooks
Browse files Browse the repository at this point in the history
Since the Python range is `>=3.8,<3.11` in `conda-environment.yml`
(and in the Poetry config in `pyproject.toml` as well),
the version installed by default will be Python 3.10.

It makes sense to use the same version in the pre-commit hooks.

GitHub: fix mxcube#836
  • Loading branch information
fabcor-maxiv committed Jan 25, 2024
1 parent dcb38fd commit b1d1240
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
default_language_version:
python: python3.8
python: python3.10
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
language_version: python3.8
# - id: poetry-lock
# language_version: python3.8
- repo: https://github.com/myint/autoflake
rev: v1.6.0
hooks:
Expand All @@ -24,7 +22,6 @@ repos:
hooks:
- id: black
name: Black
language_version: python3.8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
Expand Down

0 comments on commit b1d1240

Please sign in to comment.