From 646c6f4e4242ad0959a3c09a55f23b69448284e7 Mon Sep 17 00:00:00 2001 From: Arie Bovenberg Date: Sat, 5 Feb 2022 21:35:44 +0100 Subject: [PATCH] add slotscheck configuration --- .pre-commit-config.yaml | 13 ++++++++++--- pyproject.toml | 3 +++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 015d80ecfc..d80f8bfc14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 042bab6bff..1006ad78c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" -- 2.47.3