Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add fix-license-header
  • Loading branch information
janbridley committed Dec 20, 2024
commit cc0d813c6e3a6c3b18d2eb4831fd4aa8a5980b01
16 changes: 13 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ repos:
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.4.1
hooks:
- id: fix-license-header
name: Fix License Headers
exclude: ^doc/|^tests/
types_or: [python]
args:
- --license-file=LICENSE
- --start=2
- --num=1
- --add=This file is from the parsnip project, released under the BSD 3-Clause License.
- --keep-before=#!