Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Fix lint errors #11

Merged
merged 1 commit into from
Jan 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pytest_docstyle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import logging
import re

import pydocstyle
import pytest
Expand All @@ -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 + '$'
Expand Down Expand Up @@ -76,4 +76,3 @@ def reportinfo(self):

class DocStyleError(Exception):
"""custom exception for error reporting."""

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from setuptools import setup


setup(
name='pytest-docstyle',
version='1.2.1',
Expand All @@ -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',
]
Expand Down