Skip to content

Commit

Permalink
Add copyright headers check to pre-commit (#317)
Browse files Browse the repository at this point in the history
* Add copyright headers check to pre-commit

* Remove copyright linter from GHA (now part of pre-commit)
  • Loading branch information
milanmlft authored Feb 22, 2024
1 parent 457fe21 commit 027f794
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Ensure copyright and license header are present
run: ./.github/linters/check_headers_exist.sh

- name: Run pre-commit
uses: pre-commit/[email protected]
with:
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ repos:
entry: mypy
args: ['--config-file=setup.cfg']
additional_dependencies: ['mypy', 'types-PyYAML', 'types-requests', 'types-python-slugify', 'types-psycopg2']
- id: copyright-headers
name: copyright-headers
language: script
entry: bin/linters/check_headers_exist.sh

File renamed without changes.

0 comments on commit 027f794

Please sign in to comment.