Skip to content

Commit

Permalink
PyCQA#129 - Added docs and renamed a class
Browse files Browse the repository at this point in the history
  • Loading branch information
shacharoo committed Jan 14, 2017
1 parent ef66fb3 commit 13159ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/release_notes.rst
Expand Up @@ -20,6 +20,7 @@ New Features
* Decorator-based skipping via ``--ignore-decorators`` has been added (#204).
* Support for using pycodestyle style wildcards has been added (#72, #209).
* Superfluous opening quotes are now reported as part of D300 (#166, #225).
* Support for ``numpy`` conventions verification has been added (#129).

Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/pydocstyle/__init__.py
Expand Up @@ -3,5 +3,5 @@
from .utils import __version__

# Temporary hotfix for flake8-docstrings
from .checker import PEP257Checker, tokenize_open
from .checker import ConventionChecker, tokenize_open
from .parser import AllError
8 changes: 4 additions & 4 deletions src/pydocstyle/checker.py
Expand Up @@ -34,8 +34,8 @@ def decorator(f):
return decorator


class PEP257Checker(object):
"""Checker for PEP 257.
class ConventionChecker(object):
"""Checker for PEP 257 and numpy conventions.
D10x: Missing docstrings
D20x: Whitespace issues
Expand Down Expand Up @@ -642,8 +642,8 @@ def check(filenames, select=None, ignore=None, ignore_decorators=None):
try:
with tokenize_open(filename) as file:
source = file.read()
for error in PEP257Checker().check_source(source, filename,
ignore_decorators):
for error in ConventionChecker().check_source(source, filename,
ignore_decorators):
code = getattr(error, 'code', None)
if code in checked_codes:
yield error
Expand Down

0 comments on commit 13159ed

Please sign in to comment.