diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae73842..0e7c666 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,18 +35,18 @@ repos: - id: bind-requirements - repo: https://github.com/domdfcoding/flake8-dunder-all - rev: v0.1.0 + rev: v0.1.3 hooks: - id: ensure-dunder-all files: ^coverage_pyver_pragma/.*\.py$ - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.5.1 + rev: v1.7.0 hooks: - id: python-no-eval - repo: https://github.com/asottile/pyupgrade - rev: v2.7.3 + rev: v2.7.4 hooks: - id: pyupgrade args: diff --git a/tests/test_regex.py b/tests/test_regex.py index 2e1c778..dd51012 100644 --- a/tests/test_regex.py +++ b/tests/test_regex.py @@ -21,7 +21,7 @@ def test_not_version_regex(): for pragma_string in ["pragma", "PRAGMA"]: for post_pragma_space in ['', ':', ": ", ":\t", " "]: for no_string in ["no", "NO"]: - for post_no_space in ['', ' ', "\t", " "]: + for post_no_space in ['', ' ', '\t', " "]: for cover_string in ["cover", "COVER"]: for post_cover_space in [' ']: # ['', ' ', "\t", " "]: # TODO: This regex is picky about the space here @@ -41,7 +41,7 @@ def test_not_version_regex(): for pragma_string in ["pragma", "PRAGMA"]: for post_pragma_space in ['', ':', ": ", ":\t", " "]: for no_string in ["no", "NO"]: - for post_no_space in ['', ' ', "\t", " "]: + for post_no_space in ['', ' ', '\t', " "]: for cover_string in ["cover", "COVER"]: for post_cover_space in [' ']: # ['', ' ', "\t", " "]: # TODO: This regex is picky about the space here @@ -60,7 +60,7 @@ def test_not_version_regex(): for pragma_string in ["pragma", "PRAGMA"]: for post_pragma_space in ['', ':', ": ", ":\t", " "]: for no_string in ["no", "NO"]: - for post_no_space in ['', ' ', "\t", " "]: + for post_no_space in ['', ' ', '\t', " "]: for cover_string in ["cover", "COVER"]: for post_cover_space in ['']: for post_cover_text in ['']: