summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-31 19:37:31 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-31 19:39:14 +0200
commit6ce957cdcd07d50570b3d7985190b67b25e51582 (patch)
tree13cade2677aeec89854b98839af4f81f644ff1ab /.pre-commit-config.yaml
parent6c5bc4d43d2f8aed3e7ab4a789e5bc0285657c44 (diff)
pre-commit: Ignore m_/m_p/p prefixes in variable names
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 95bf799fd5..2386129b1b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -66,9 +66,10 @@ repos:
- manual
- id: no-commit-to-branch
- repo: https://github.com/codespell-project/codespell
- rev: v1.17.1
+ rev: f7f304cb40596e4706be27ca44d1401396a97420
hooks:
- id: codespell
+ args: ["--ignore-regex", "\\W(?:(?:m_)?p(?=[A-Z])|m_(?=\\w))"]
exclude: ^.*\.(pot?|ts)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.2.0