refactor: Clean up mutable defaults and add CI check (#27828)
* refactor: Clean up mutable defaults and add CI check
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2b3a471..e411f11 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,10 @@
rev: 3.9.2
hooks:
- id: flake8
- args: ['--config', '.github/helper/.flake8_strict']
+ additional_dependencies: [
+ 'flake8-mutable',
+ ]
+ args: ['--select=M511', '--config', '.github/helper/.flake8_strict']
exclude: ".*setup.py$"
- repo: https://github.com/timothycrosley/isort