-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add pylint, flake8, black - Update requirements - Refs: #9
- Loading branch information
Showing
5 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This is an example .flake8 config, used when developing *Black* itself. | ||
# Keep in sync with setup.cfg which is used for source packages. | ||
|
||
[flake8] | ||
max-line-length = 99 | ||
extend-ignore = E203, W503 |
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,7 @@ | ||
[settings] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
line_length=99 | ||
force_sort_within_sections=True |
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,3 @@ | ||
[MASTER] | ||
disable = C0330, C0326 | ||
max-line-lengt = 99 |
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,12 @@ | ||
format: | ||
isort . --sp .isort.cfg --skip data --skip Dockerfile | ||
black . -l 99 | ||
|
||
lint: | ||
find . -iname "*.py" | xargs pylint --rcfile=.pylintrc || exit 0 | ||
|
||
lint-report: | ||
find . -iname "*.py" | xargs pytest --pylint --pylint-rcfile=.pylintrc --flake8 || exit 0 | ||
|
||
typehint: | ||
find . -iname "*.py" | xargs mypy --ignore-missing-imports --show-error-codes --pretty --strict || exit 0 |
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,4 +1,11 @@ | ||
black | ||
flake8 | ||
isort | ||
tokenizers | ||
konlpy | ||
mypy | ||
pylint | ||
PyYAML | ||
pytest | ||
pytest-flake8 | ||
pytest-pylint |