From 9a760f1561769420a6665d761a1f193daa3fede8 Mon Sep 17 00:00:00 2001 From: Xavier Bergeron Date: Thu, 21 Jul 2022 08:51:02 -0700 Subject: [PATCH] Move black config to pyproject.toml and fix conftest --- .pre-commit-config.yaml | 2 -- conftest.py | 4 ++-- pyproject.toml | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47ef60e..f39fb51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,8 +29,6 @@ repos: hooks: - id: black language_version: python3.7 - args: - - --line-length=100 - repo: local hooks: diff --git a/conftest.py b/conftest.py index d42724b..30d08fb 100644 --- a/conftest.py +++ b/conftest.py @@ -88,7 +88,7 @@ def integration_test_id_table_cleaner(): _ = [i for i in table_cleaner] -integration_test_id_table = pytest.fixture("module")(get_integration_test_id_table) -integration_test_no_range_index_hash_key = pytest.fixture("module")( +integration_test_id_table = pytest.fixture(scope="module")(get_integration_test_id_table) +integration_test_no_range_index_hash_key = pytest.fixture(scope="module")( get_integration_test_no_range_key_index_hash_key ) diff --git a/pyproject.toml b/pyproject.toml index 864b334..e530d8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta:__legacy__" + +[tool.black] +line-length = 100