Skip to content

Commit ce9fdc7

Browse files
committed
fix typo in class attr
1 parent 0ad637d commit ce9fdc7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ starting with `test_` against your validator.
7676
Changes
7777
-------
7878

79-
0.1.2 - 2021-03-21
79+
0.1.3 - 2021-03-21
8080
``````````````````
8181
* minor refactoring and doc improvement
8282

flake8_test_name.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
# metadata
8-
__version__ = "0.1.2"
8+
__version__ = "0.1.3"
99
CODE_PREFIX = "TN"
1010

1111
# constants
@@ -100,14 +100,14 @@ class MyFlake8Plugin(Flake8Argparse):
100100

101101
version = __version__
102102
name = "test-name"
103-
code_previx = CODE_PREFIX
103+
code_prefix = CODE_PREFIX
104104

105105
ERRORS = {
106106
101: "test function name does not match the convention ({func_name})",
107107
}
108108

109109
def format_code(self, code):
110-
return f"{self.code_previx}{code}"
110+
return f"{self.code_prefix}{code}"
111111

112112
def _generate_error(self, node, code, func_name):
113113
msg = "{0} {1}".format(self.format_code(code), self.ERRORS[code])

0 commit comments

Comments
 (0)