Skip to content

Commit

Permalink
Merge pull request #162 from catalyst-cooperative/update-pre-commit
Browse files Browse the repository at this point in the history
Update some pre-commit hooks
  • Loading branch information
zaneselvans authored Oct 7, 2024
2 parents 3f411c7 + ba155ae commit 1cb5bb2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Other file formatting, plus common Git mistakes & text file standardization:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files # Don't accidentally commit giant files.
- id: check-merge-conflict # Watch for lingering merge markers.
Expand All @@ -28,6 +28,16 @@ repos:
additional_dependencies:
- mdformat-myst

####################################################################################
# Linters: hooks that check but don't alter files
####################################################################################

# Check Github Actions
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint

# Configuration for pre-commit.ci
ci:
autofix_commit_msg: |
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
# Packages required for setting up the environment
- pip>=21
- pip>=24
- python>=3.12,<3.13

# Use pip to install the package defined by this repo for development:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = [
"mdformat>=0.7.17,<1",
"mdformat-myst>=0.1.5,<1",
"myst-parser>=1,<5",
"pre-commit>=3,<4", # Allow us to run pre-commit hooks in testing
"pre-commit>=4,<5", # Allow us to run pre-commit hooks in testing
"pydocstyle>=6,<7", # Style guidelines for Python documentation
"sphinx>6,<9", # The default Python documentation engine
"sphinx-autoapi>=3,<4", # Generates documentation from docstrings
Expand Down

0 comments on commit 1cb5bb2

Please sign in to comment.