Skip to content

Commit

Permalink
Updated pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikail KOCAK committed Sep 3, 2020
1 parent de1e1a1 commit 786c709
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
12 changes: 8 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,3 @@ run the below command.
```shell
pip install -e .[test]
```

16 changes: 8 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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",
)
]
Expand All @@ -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,
)
Expand All @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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---------------
Expand Down

0 comments on commit 786c709

Please sign in to comment.