diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d58e2dede..031b5e1e5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -130,7 +130,14 @@ repos: tests/cartesian_tests/integration_tests/multi_feature_tests/utils.py | tests/cartesian_tests/integration_tests/feature_tests/test_call_interface.py | tests/cartesian_tests/unit_tests/frontend_tests/test_gtscript_frontend.py | - tests/next_tests/.* + tests/next_tests/unit_tests/.* | + tests/next_tests/integration_tests/multi_feature_tests/.* | + tests/next_tests/integration_tests/feature_tests/ffront_tests/.* | + tests/next_tests/integration_tests/feature_tests/iterator_tests/.* | + tests/next_tests/integration_tests/feature_tests/otf_tests/.* | + tests/next_tests/integration_tests/feature_tests/math_builtin_test_data.py | + tests/next_tests/past_common_fixtures.py | + tests/next_tests/toy_connectivity.py | )$ - repo: https://github.com/pre-commit/mirrors-mypy @@ -187,5 +194,15 @@ repos: build/.* | ci/.* | docs/.* | + tests/conftest.py | + tests/cartesian_tests/.* | + tests/next_tests/unit_tests/.* | + tests/next_tests/integration_tests/multi_feature_tests/.* | + tests/next_tests/integration_tests/feature_tests/ffront_tests/.* | + tests/next_tests/integration_tests/feature_tests/iterator_tests/.* | + tests/next_tests/integration_tests/feature_tests/otf_tests/.* | + tests/next_tests/integration_tests/feature_tests/math_builtin_test_data.py | + tests/next_tests/past_common_fixtures.py | + tests/next_tests/toy_connectivity.py | tests/.* )$ diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 60dd7c65e9..a5b766a85e 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -132,6 +132,8 @@ Each test suite should follow the following structure: Temporarily it may be allowed to split unit tests for a module into multiple `test__.py` test modules. This should be taken as a reason to think about splitting the source module though. +Temporarily, tests for testing utilities can be placed next to the module containing them, with the name `test_util_.py`. This should be taken as a hint that the tested utils should be moved into the library. + TODO: add missing test conventions.