This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blacken the source code and sort imports (#507)
* Add black and isort to tox and reformat the code * Reformat comments and violations
- Loading branch information
Showing
13 changed files
with
1,039 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py36'] | ||
skip-string-normalization = true | ||
|
||
[tool.isort] | ||
profile = "black" | ||
src_paths = ["src/pydocstyle"] | ||
line_length = 79 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pytest==3.0.2 | ||
pytest-pep8==1.0.6 | ||
mypy==0.782 | ||
black==20.8b1 | ||
isort==5.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
from .checker import check | ||
from .violations import Error, conventions | ||
from .utils import __version__ | ||
|
||
# Temporary hotfix for flake8-docstrings | ||
from .checker import ConventionChecker | ||
from .checker import ConventionChecker, check | ||
from .parser import AllError | ||
from .utils import __version__ | ||
from .violations import Error, conventions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
def main() -> None: | ||
from pydocstyle import cli | ||
|
||
cli.main() | ||
|
||
|
||
|
Oops, something went wrong.