From: Arie Bovenberg Date: Sat, 5 Feb 2022 20:35:44 +0000 (+0100) Subject: add slotscheck configuration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646c6f4e4242ad0959a3c09a55f23b69448284e7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add slotscheck configuration --- 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"