Skip to content

Commit

Permalink
Add license-check to pre-commit hook (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadmo authored Aug 2, 2024
1 parent 294e452 commit 919b5b7
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 10 deletions.
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
name: Check YAML (unsafe)
args: [--unsafe]
files: &non-standard-yaml-files .gitlab-ci.yml
# check other yaml files normally
- id: check-yaml
exclude: *non-standard-yaml-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
hooks:
Expand All @@ -23,3 +17,12 @@ repos:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
- repo: local
hooks:
- id: license-header-check
name: Run license-check script
entry: python scripts/license_check.py -c setup.py -c bionemo -c tests -c examples -c internal -c hydra_plugins -c fw2nim_examples -c download_artifacts.py -c docs --modify
language: python
additional_dependencies: ["click==8.1.7"]
pass_filenames: false
always_run: true
Loading

0 comments on commit 919b5b7

Please sign in to comment.