Skip to content

Commit

Permalink
Simpllify fix-license-header configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Aug 15, 2024
1 parent 9f22388 commit d7bc10f
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,22 @@ repos:
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.3.2
rev: v0.4.0
hooks:
- id: fix-license-header
name: Fix license headers (Python)
name: Fix license headers
exclude: |
(?x)(
^hoomd/extern/|
^sphinx-doc/tutorial/|
^sphinx-doc/howto/
)
types_or: [python]
types_or: [python, c, c++, cuda, inc, rst]
args:
- --license-file=LICENSE
- --add=Part of HOOMD-blue, released under the BSD 3-Clause License.
- --keep-before=#!
- id: fix-license-header
name: Fix license headers (C)
types_or: [c, c++, cuda, inc]
args:
- --license-file=LICENSE
- --add=Part of HOOMD-blue, released under the BSD 3-Clause License.
- --comment-prefix=//
- id: fix-license-header
name: Fix license headers (reStructuredText)
types_or: [rst]
args:
- --license-file=LICENSE
- --add=Part of HOOMD-blue, released under the BSD 3-Clause License.
- --keep-after=.. include
- --comment-prefix=..
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
Expand Down

0 comments on commit d7bc10f

Please sign in to comment.