Skip to content

Commit 1eb1720

Browse files
committed
Ensure we're not committing references to source maps by accident
1 parent cedadc7 commit 1eb1720

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$|static"
1+
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$"
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
44
rev: v5.0.0
@@ -13,6 +13,14 @@ repos:
1313
- id: end-of-file-fixer
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
16+
- repo: local
17+
hooks:
18+
- id: forbid-sourcemap
19+
name: Check for sourceMappingURL
20+
description: Ensures no files containing sourceMappingURL are committed
21+
entry: sourceMappingURL
22+
language: pygrep
23+
types_or: [javascript, css]
1624
- repo: https://github.com/adamchainz/django-upgrade
1725
rev: 1.23.1
1826
hooks:
@@ -30,6 +38,7 @@ repos:
3038
- id: biome-check
3139
additional_dependencies: ["@biomejs/[email protected]"]
3240
args: [--unsafe]
41+
exclude: "static"
3342
- repo: https://github.com/tox-dev/pyproject-fmt
3443
rev: v2.5.1
3544
hooks:

0 commit comments

Comments
 (0)