Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 13159ed

Browse files
committed
#129 - Added docs and renamed a class
1 parent ef66fb3 commit 13159ed

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ New Features
2020
* Decorator-based skipping via ``--ignore-decorators`` has been added (#204).
2121
* Support for using pycodestyle style wildcards has been added (#72, #209).
2222
* Superfluous opening quotes are now reported as part of D300 (#166, #225).
23+
* Support for ``numpy`` conventions verification has been added (#129).
2324

2425
Bug Fixes
2526

src/pydocstyle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from .utils import __version__
44

55
# Temporary hotfix for flake8-docstrings
6-
from .checker import PEP257Checker, tokenize_open
6+
from .checker import ConventionChecker, tokenize_open
77
from .parser import AllError

src/pydocstyle/checker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def decorator(f):
3434
return decorator
3535

3636

37-
class PEP257Checker(object):
38-
"""Checker for PEP 257.
37+
class ConventionChecker(object):
38+
"""Checker for PEP 257 and numpy conventions.
3939
4040
D10x: Missing docstrings
4141
D20x: Whitespace issues
@@ -642,8 +642,8 @@ def check(filenames, select=None, ignore=None, ignore_decorators=None):
642642
try:
643643
with tokenize_open(filename) as file:
644644
source = file.read()
645-
for error in PEP257Checker().check_source(source, filename,
646-
ignore_decorators):
645+
for error in ConventionChecker().check_source(source, filename,
646+
ignore_decorators):
647647
code = getattr(error, 'code', None)
648648
if code in checked_codes:
649649
yield error

0 commit comments

Comments
 (0)