From b3778e68706ec62f4d549f433458b4b4377d13ef Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Thu, 25 Jan 2018 13:27:57 +0900 Subject: [PATCH] Fix lint errors --- pytest_docstyle.py | 5 ++--- setup.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pytest_docstyle.py b/pytest_docstyle.py index aadc6ac..1fcf269 100644 --- a/pytest_docstyle.py +++ b/pytest_docstyle.py @@ -1,5 +1,5 @@ -import re import logging +import re import pydocstyle import pytest @@ -8,7 +8,7 @@ def pytest_addoption(parser): group = parser.getgroup('docstyle') group.addoption('--docstyle', action='store_true', - default=False, help='run pydocstyle') + default=False, help='run pydocstyle') # https://github.com/PyCQA/pydocstyle/blob/2.1.1/src/pydocstyle/config.py#L69 DEFAULT_MATCH_RE = pydocstyle.config.ConfigurationParser.DEFAULT_MATCH_RE + '$' @@ -76,4 +76,3 @@ def reportinfo(self): class DocStyleError(Exception): """custom exception for error reporting.""" - diff --git a/setup.py b/setup.py index 8b6cae7..96106f5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ from setuptools import setup - setup( name='pytest-docstyle', version='1.2.1', @@ -16,7 +15,7 @@ 'pydocstyle>=2.1,<2.2', ], # https://docs.pytest.org/en/latest/writing_plugins.html#making-your-plugin-installable-by-others - entry_points = { + entry_points={ 'pytest11': [ 'docstyle = pytest_docstyle', ]