Skip to content

Commit

Permalink
build: update python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvp committed Sep 9, 2024
1 parent ca2b30b commit c4d5eeb
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 85 deletions.
61 changes: 44 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ repos:

# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
rev: "v4.6.0"
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
Expand All @@ -38,20 +39,28 @@ repos:
- id: end-of-file-fixer
exclude: data|.ipynb$|^\.
- id: name-tests-test
exclude: common.py|help.*py
exclude: common.py|help*.*py
args:
- --pytest-test-first
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
exclude: data|\.ipynb$
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: data|.ipynb$
exclude: data|\.ipynb$

# Changes tabs to spaces
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: "v1.5.4"
rev: "v1.5.5"
hooks:
- id: remove-tabs

- repo: https://github.com/pre-commit/pre-commit
rev: v3.8.0
hooks:
- id: validate_manifest

# Format doc strings
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: "v0.7.3"
Expand All @@ -72,25 +81,43 @@ repos:
types: [ python ]
stages: [ manual ]

# Format Python code
- id: ruff
name: ruff-format
entry: ruff format --force-exclude --config pyproject.toml
language: system
types: [ python ]
exclude: ^notebooks|^extern
# # Format Python code
# - id: ruff
# name: ruff-format
# entry: ruff format --force-exclude --config pyproject.toml
# language: system
# types: [ python ]
# exclude: ^notebooks|^extern
#
# # Lint and fix Python code (including import sort)
# - id: ruff
# name: ruff
# entry: ruff check --force-exclude --fix --config pyproject.toml
# language: system
# types: [ python ]
# exclude: ^notebooks|^extern

# Lint and fix Python code (including import sort)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: ruff
name: ruff
entry: ruff check --force-exclude --fix --config pyproject.toml
language: system
types: [ python ]
exclude: ^notebooks|^extern
- id: ruff-format
exclude: ^notebooks|^extern

- repo: https://github.com/python-poetry/poetry
rev: "1.8.0"
hooks:
- id: poetry-check
- id: poetry-lock
stages: [ manual ]
- id: poetry-install
stages: [ manual ]

# Check for common shell mistakes
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.6"
rev: "v0.10.0.1"
hooks:
- id: shellcheck
args: [ --external-sources ]
stages: [ manual ]
120 changes: 60 additions & 60 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c4d5eeb

Please sign in to comment.