]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add slotscheck configuration
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Sat, 5 Feb 2022 20:35:44 +0000 (21:35 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Sat, 5 Feb 2022 20:48:50 +0000 (21:48 +0100)
.pre-commit-config.yaml
pyproject.toml

index 015d80ecfc4d1052fbd708f1f6f3347a38befc1a..d80f8bfc149a4387bb43a5754c9881f82e66d80c 100644 (file)
@@ -27,6 +27,13 @@ repos:
           - pydocstyle
           - pygments
 
-
-
-
+-   repo: https://github.com/ariebovenberg/slotscheck
+    rev: v0.11.0
+    hooks:
+    -   id: slotscheck
+        exclude: "^(?!lib/sqlalchemy)"
+        additional_dependencies:
+          - typing_extensions
+          - mypy
+          - greenlet
+        entry: env PYTHONPATH=lib slotscheck -v
index 042bab6bfff86463a88cf79fd14b6bbdfaae923b..1006ad78c082f29af4689b8ac365ce589e320336 100644 (file)
@@ -10,6 +10,9 @@
 line-length = 79
 target-version = ['py37']
 
+[tool.slotscheck]
+exclude-modules = '^sqlalchemy\.testing'
+
 
 [tool.pytest.ini_options]
 addopts = "--tb native -v -r sfxX --maxfail=250 -p warnings -p logging --strict-markers"