summaryrefslogtreecommitdiff
path: root/packages/responsive-image/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/responsive-image/.pre-commit-config.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/responsive-image/.pre-commit-config.yaml b/packages/responsive-image/.pre-commit-config.yaml
new file mode 100644
index 0000000..4e2feaf
--- /dev/null
+++ b/packages/responsive-image/.pre-commit-config.yaml
@@ -0,0 +1,38 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.5.0
+ hooks:
+ - id: check-yaml
+ - id: check-toml
+ - id: check-symlinks
+ - id: check-added-large-files
+ - id: check-vcs-permalinks
+ - id: debug-statements
+ - id: trailing-whitespace
+ exclude_types: ["image", "svg"]
+ - id: end-of-file-fixer
+ - id: mixed-line-ending
+
+- repo: https://github.com/pre-commit/pygrep-hooks
+ rev: 'v1.10.0'
+ hooks:
+ - id: python-check-blanket-noqa
+ - id: python-check-blanket-type-ignore
+ - id: python-use-type-annotations
+
+- repo: https://github.com/astral-sh/ruff-pre-commit
+ # Ruff version.
+ rev: v0.1.14
+ hooks:
+ # Run the linter.
+ - id: ruff
+ args: [--fix]
+ # Run the formatter.
+ - id: ruff-format
+
+- repo: https://github.com/pdm-project/pdm
+ rev: '2.12.2'
+ hooks:
+ - id: pdm-lock-check