exluded .po, .mo and swagger.json from checks

For demonstration, the last empty line has been removed from swagger.json. Usually it would have been added again through pre-commit, but not with the exclusion here.
This commit is contained in:
Peter Pfeufer 2021-06-22 16:40:27 +02:00
parent 1f80a02be9
commit fd86471a0f
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
2 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ repos:
- id: check-yaml
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude: \.(min\.css|min\.js|mo)$
exclude: (\.min\.css|\.min\.js|\.mo|\.po|swagger\.json)$
- id: end-of-file-fixer
exclude: \.(min\.css|min\.js|mo)$
exclude: (\.min\.css|\.min\.js|\.mo|\.po|swagger\.json)$
- id: mixed-line-ending
args: [ '--fix=lf' ]
- id: fix-encoding-pragma
@ -25,4 +25,4 @@ repos:
rev: 2.3.5
hooks:
- id: editorconfig-checker
exclude: ^(LICENSE|allianceauth/static/css/themes/bootstrap-locals.less)
exclude: ^(LICENSE|allianceauth\/static\/css\/themes\/bootstrap-locals.less|allianceauth\/eveonline\/swagger.json|(.*.po)|(.*.mo))

File diff suppressed because one or more lines are too long