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

Commit

Permalink
Allow package as an imperative verb in D401 (#356)
Browse files Browse the repository at this point in the history
If a docstring starts with "Package" it's probably something like:

```python
"""Package the files into a tarball."""
```

So don't flag it in D401.

Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
  • Loading branch information
gibfahn and samj1912 committed Aug 31, 2020
1 parent 408f962 commit d8f0931
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ New Features

* Add flag to disable `# noqa` comment processing in API (#485).

Bug Fixes

* Treat "package" as an imperative verb for D401 (#356).

5.1.1 - August 29th, 2020
---------------------------

Bug Fixes

* Fix ``IndexError`` crash on one-line backslashed docstrings (#506).


5.1.0 - August 22nd, 2020
---------------------------

Expand All @@ -43,7 +46,6 @@ Bug Fixes
* Support backslash-continued descriptions in docstrings (#472).
* Correctly detect publicity of modules inside directories (#470, #494).


5.0.2 - January 8th, 2020
---------------------------

Expand Down Expand Up @@ -122,7 +124,6 @@ Bug Fixes

* Fix parsing tuple syntax ``__all__`` (#355, #352).


3.0.0 - October 14th, 2018
--------------------------

Expand Down
1 change: 1 addition & 0 deletions src/pydocstyle/data/imperatives.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ open
output
override
overwrite
package
pad
parse
partial
Expand Down
1 change: 0 additions & 1 deletion src/pydocstyle/data/imperatives_blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ module
new
number
optional
package
placeholder
reference
result
Expand Down

0 comments on commit d8f0931

Please sign in to comment.