Skip to content

Commit e239fb9

Browse files
pre-commit: add end-of-file-fixer hook, and run on all files
1 parent fc103b5 commit e239fb9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[run]
22
include = edc_consent/*
33
omit = edc_consent/tests/*,edc_consent/migrations/*
4-
branch = 1
4+
branch = 1

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ repos:
4343
edc_consent/tests/crypto_keys/user-rsa-local-private.pem|
4444
edc_consent/tests/crypto_keys/user-rsa-restricted-private.pem
4545
)$
46+
- id: end-of-file-fixer
47+
exclude: ^edc_consent/tests/crypto_keys/
4648
- id: fix-byte-order-marker
4749
- id: requirements-txt-fixer
4850
files: requirements/.*\.txt$

0 commit comments

Comments
 (0)