-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding new methods for stream handling (from_stream, magic_stream) (thanks to Robbert Korving) Co-authored-by: Robbert Korving <r.korving@gmail.com>
- Loading branch information
1 parent
f37d19a
commit b57020f
Showing
14 changed files
with
274 additions
and
114 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,17 @@ | ||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py36', 'py37', 'py38'] | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.idea | ||
| \.pytest_cache | ||
| \.github | ||
| _build | ||
| build | ||
| dist | ||
| venv | ||
| test/resources | ||
)/ | ||
''' |
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,13 @@ | ||
[report] | ||
omit = | ||
*/python?.?/* | ||
*/site-packages/* | ||
*/test/* | ||
*/pypy/* | ||
*/venv/* | ||
*/.*/* | ||
*/*.egg-info/* | ||
*/.mypy_cache/* | ||
*/.pytest_cache/* | ||
exclude_lines = | ||
command_line_entry |
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,17 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = .git,.idea,__pycache__,.gitignore,venv,.github,build,dist,test | ||
ignore = | ||
# E203 whitespace before ':' | ||
# black will insert some non-E203-compliant whitespace | ||
E203, | ||
# W503 line break before binary operator | ||
# black will inserts non-W503-compliant line breaks | ||
W503, | ||
# F401 imported but unused | ||
# for __version__, __author__ | ||
F401, | ||
# F403 used; unable to detect undefined names | ||
# When importing start but some names undefined | ||
F403, | ||
T001 |
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
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,26 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.5.0 | ||
hooks: | ||
- id: mixed-line-ending | ||
exclude: ^test/resources/ | ||
- id: trailing-whitespace | ||
exclude: ^test/resources/ | ||
- id: requirements-txt-fixer | ||
- id: fix-encoding-pragma | ||
- id: check-byte-order-marker | ||
- id: debug-statements | ||
- id: check-yaml | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
args: [--config=.black.toml] | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: master | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v0.770' | ||
hooks: | ||
- id: mypy |
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
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
Oops, something went wrong.