Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/upgrade pre-commit config #74

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
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
93 changes: 48 additions & 45 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.9.2
hooks:
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-private-key
fail_fast: true

- repo: local
hooks:
- id: isort
name: isort-local
entry : isort
language: python
types: [python]
exclude: .+/(settings|migrations)/.+
pass_filenames: true
- id: eslint
name: eslint-local
entry: npm run lint
language: system
types: [javascript]
exclude: >
(?x)^(
.+\.config\.js|
server\.js|
\.eslintrc\.js
)$
pass_filenames: true
- id: missing-migrations
name: missing-migrations-local
entry: pipenv run python manage.py has_missing_migrations
language: system
always_run: true
pass_filenames: false
- id: prospector
name: prospector-local
entry: prospector --messages-only
language: python
types: [python]
exclude: .+/(settings|migrations)/.+
pass_filenames: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-private-key

- repo: local
hooks:
- id: isort
name: isort-local
entry: isort
language: python
types: [python]
exclude: .+/(settings|migrations)/.+
pass_filenames: true
- id: eslint
name: eslint-local
entry: npm run lint
language: system
types: [javascript]
exclude: >
(?x)^(
.+\.config\.js|
server\.js|
\.eslintrc\.js
)$
pass_filenames: true
- id: missing-migrations
name: missing-migrations-local
entry: pipenv run python manage.py makemigrations --check
language: system
always_run: true
pass_filenames: false
- id: prospector
name: prospector-local
entry: prospector --messages-only
language: python
types: [python]
exclude: .+/(settings|migrations)/.+
pass_filenames: true