Skip to content

Commit 7f80ce2

Browse files
committed
prepare 0.1.5, fix rst and add pre-commit hook
1 parent ee7e50b commit 7f80ce2

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,34 @@
44
fail_fast: false
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v2.3.0
7+
rev: v3.4.0
88
hooks:
99
- id: check-ast
10-
- id: flake8
11-
name: flake8-blocking
12-
args: ['--isolated', '--select=P,F401,F821,F901', '--ignore=P101,P102']
13-
additional_dependencies:
14-
- flake8-string-format
1510
- id: check-merge-conflict
1611
- id: debug-statements
1712
- id: trailing-whitespace
1813
types: [python]
1914
- id: end-of-file-fixer
2015
types: [python]
16+
17+
- repo: https://gitlab.com/pycqa/flake8
18+
rev: master
19+
hooks:
20+
- id: flake8
21+
name: flake8-blocking
22+
args: [ '--isolated', '--select=P,F401,F821,F901', '--ignore=P101,P102' ]
23+
additional_dependencies:
24+
- flake8-string-format
2125
- repo: https://github.com/pre-commit/mirrors-mypy
22-
rev: v0.730
26+
rev: v0.812
2327
hooks:
2428
- id: mypy
2529
args: [--ignore-missing-imports]
2630
- repo: https://github.com/psf/black
27-
rev: 19.10b0
31+
rev: 20.8b1
2832
hooks:
29-
- id: black
33+
- id: black
34+
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
35+
rev: v1.0.1
36+
hooks:
37+
- id: rst-linter

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This plugin is using the following error codes:
6969
Operation
7070
---------
7171

72-
The plugin will go through all files, look for files starting with "test_" and check any functions or methods
72+
The plugin will go through all files, look for files starting with `test_` and check any functions or methods
7373
starting with `test_` against your validator.
7474

7575

flake8_test_name.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Callable, Optional
77

88
# metadata
9-
__version__ = "0.1.4"
9+
__version__ = "0.1.5"
1010

1111
CODE_PREFIX = "TN"
1212

test_flake8_test_name.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test__resolve_path_expand__should_pass(self):
7373

7474
class TestFlake8Optparse:
7575
def test__add_options__should_pass(self):
76-
flake8_opt_mgr = OptionManager(prog="flake8", version=flake8.__version__,)
76+
flake8_opt_mgr = OptionManager(
77+
prog="flake8",
78+
version=flake8.__version__,
79+
)
7780
plugin = Flake8Argparse(None, SAMPLE_FILE_PATH)
7881
plugin.add_options(flake8_opt_mgr)
7982
assert len(flake8_opt_mgr.options) == 2

0 commit comments

Comments
 (0)