Skip to content

Commit

Permalink
Updates from SciTools/mo_pack#34 .
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed May 30, 2024
1 parent 2c4d14a commit be1dd05
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions templates/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ repos:
- id: check-merge-conflict
# Check for debugger imports and py37+ `breakpoint()` calls in Python source.
- id: debug-statements
# Don't commit to main branch.
- id: no-commit-to-branch
# Check TOML file syntax.
- id: check-toml
# Check YAML file syntax.
- id: check-yaml
# Replaces or checks mixed line ending
# Makes sure files end in a newline and only a newline.
# Duplicates https://docs.astral.sh/ruff/rules/missing-newline-at-end-of-file/
# but also works on non-Python files.
- id: end-of-file-fixer
# Replaces or checks mixed line ending.
- id: mixed-line-ending
# Don't commit to main branch.
- id: no-commit-to-branch
# Trims trailing whitespace.
# Duplicates https://docs.astral.sh/ruff/rules/trailing-whitespace/
# but also works on non-Python files.
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.2"
Expand Down

0 comments on commit be1dd05

Please sign in to comment.