From ce9fdc71a9fc5588206d52bd279be22097f133df Mon Sep 17 00:00:00 2001 From: Bastien Gerard Date: Sun, 21 Mar 2021 14:40:22 +0100 Subject: [PATCH] fix typo in class attr --- README.rst | 2 +- flake8_test_name.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 9ac981c..6f403e6 100644 --- a/README.rst +++ b/README.rst @@ -76,7 +76,7 @@ starting with `test_` against your validator. Changes ------- -0.1.2 - 2021-03-21 +0.1.3 - 2021-03-21 `````````````````` * minor refactoring and doc improvement diff --git a/flake8_test_name.py b/flake8_test_name.py index 6a0206d..bdba852 100644 --- a/flake8_test_name.py +++ b/flake8_test_name.py @@ -5,7 +5,7 @@ import re # metadata -__version__ = "0.1.2" +__version__ = "0.1.3" CODE_PREFIX = "TN" # constants @@ -100,14 +100,14 @@ class MyFlake8Plugin(Flake8Argparse): version = __version__ name = "test-name" - code_previx = CODE_PREFIX + code_prefix = CODE_PREFIX ERRORS = { 101: "test function name does not match the convention ({func_name})", } def format_code(self, code): - return f"{self.code_previx}{code}" + return f"{self.code_prefix}{code}" def _generate_error(self, node, code, func_name): msg = "{0} {1}".format(self.format_code(code), self.ERRORS[code])