From 786c70968f4ccae0674d705bd278a098a5d2b835 Mon Sep 17 00:00:00 2001 From: Mikail KOCAK Date: Thu, 3 Sep 2020 17:37:25 +0200 Subject: [PATCH] Updated pre-commit hooks --- .pre-commit-config.yaml | 12 ++++++++---- README.md | 1 - docs/conf.py | 16 ++++++++-------- tests/test_cli_diff.py | 2 +- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dcf2296..28bf5e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,27 @@ repos: - repo: https://github.com/ambv/black - rev: 18.9b0 + rev: 20.8b1 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 + rev: v3.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer + +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.3 + hooks: - id: flake8 - repo: https://github.com/asottile/seed-isort-config - rev: v1.9.0 + rev: v2.2.0 hooks: - id: seed-isort-config - repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.18 + rev: v5.4.2 hooks: - id: isort diff --git a/README.md b/README.md index 90667b0..38e19da 100644 --- a/README.md +++ b/README.md @@ -167,4 +167,3 @@ run the below command. ```shell pip install -e .[test] ``` - diff --git a/docs/conf.py b/docs/conf.py index 7fbf360..469ad8c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,12 +26,12 @@ def _read_root_file(filename): # -- Project information ----------------------------------------------------- -project = u"pytest-django-queries" -copyright = u"2019, KOCAK Mikail (NyanKiyoshi)" -author = u"KOCAK Mikail (NyanKiyoshi)" +project = "pytest-django-queries" +copyright = "2019, KOCAK Mikail (NyanKiyoshi)" +author = "KOCAK Mikail (NyanKiyoshi)" # The short X.Y version -version = u"" +version = "" # The full version, including alpha/beta/rc tags release = _read_root_file("VERSION.txt") @@ -135,8 +135,8 @@ def _read_root_file(filename): ( master_doc, "pytest-django-queries.tex", - u"pytest-django-queries Documentation", - u"KOCAK Mikail (NyanKiyoshi)", + "pytest-django-queries Documentation", + "KOCAK Mikail (NyanKiyoshi)", "manual", ) ] @@ -150,7 +150,7 @@ def _read_root_file(filename): ( master_doc, "pytest-django-queries", - u"pytest-django-queries Documentation", + "pytest-django-queries Documentation", [author], 1, ) @@ -166,7 +166,7 @@ def _read_root_file(filename): ( master_doc, "pytest-django-queries", - u"pytest-django-queries Documentation", + "pytest-django-queries Documentation", author, "pytest-django-queries", "One line description of project.", diff --git a/tests/test_cli_diff.py b/tests/test_cli_diff.py index 379763c..716a90d 100644 --- a/tests/test_cli_diff.py +++ b/tests/test_cli_diff.py @@ -15,7 +15,7 @@ def test_show_diff(testdir, valid_comparison_entries): result = runner.invoke(cli.main, ["diff", "left.json", "right.json"]) assert result.exit_code == 0, result.stdout assert repr(result.stdout) == repr( - u"""\ + """\ # another module test name \tleft count \tright count\tduplicate count -------------------\t-----------\t-----------\t---------------