diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 306f3199ef..66a30709f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,10 +48,16 @@ repos: - id: blacken-docs additional_dependencies: [black==22.6.0] +- repo: https://github.com/asottile/yesqa + rev: v1.4.0 + hooks: + - id: yesqa + - repo: https://github.com/PyCQA/flake8 rev: 5.0.2 hooks: - id: flake8 + args: ["--count", "--statistics"] - repo: https://github.com/nbQA-dev/nbQA rev: 1.4.0 diff --git a/setup.cfg b/setup.cfg index dbe241c62f..68e3d21f79 100644 --- a/setup.cfg +++ b/setup.cfg @@ -56,5 +56,3 @@ console_scripts = # E501: line too long extend-ignore = E203, E402, E501 max-line-length = 88 -count = True -statistics = True diff --git a/src/pyhf/infer/__init__.py b/src/pyhf/infer/__init__.py index ee84736c9e..5aaaf2c1c6 100644 --- a/src/pyhf/infer/__init__.py +++ b/src/pyhf/infer/__init__.py @@ -204,7 +204,7 @@ def hypotest( return tuple(_returns) if len(_returns) > 1 else _returns[0] -from pyhf.infer import intervals # noqa: F401 +from pyhf.infer import intervals __all__ = ["hypotest", "calculators", "intervals", "mle", "test_statistics", "utils"]