Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from scottwernervt/60/pre-commit-hooks
Add pre-commit hooks and refactor dev and test environments
- Loading branch information
Showing
36 changed files
with
2,127 additions
and
1,718 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,14 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
max-complexity = 18 | ||
select = C,E,F,W,B,B950 | ||
ignore = E203,E501,W503 | ||
exclude = | ||
.git | ||
.eggs | ||
.tox | ||
__pycache__ | ||
docs/conf.py | ||
old | ||
build | ||
dist |
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,11 @@ | ||
repos: | ||
- repo: https://github.com/python/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.9 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: ["flake8-bugbear==20.1.4"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
graft docs | ||
graft src | ||
graft tests | ||
|
||
include *.enc | ||
include *.rst | ||
include *.yaml | ||
include AUTHORS.rst | ||
include CHANGELOG.rst | ||
include CONTRIBUTING.rst | ||
include LICENSE | ||
include README.rst | ||
|
||
include tox.ini .travis.yml | ||
recursive-include docs *.bat | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs *.txt | ||
recursive-include docs Makefile | ||
recursive-include tests *.png | ||
recursive-include tests *.py | ||
recursive-include tests *.txt | ||
|
||
recursive-exclude docs *.pyc | ||
recursive-exclude docs *.pyo | ||
recursive-exclude tests *.pyc | ||
recursive-exclude tests *.pyo | ||
|
||
global-exclude *.py[cod] __pycache__ *.so *.dylib *.enc | ||
prune dist/docs |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
sphinx>=1.3 | ||
sphinx-rtd-theme | ||
sphinx_autodoc_typehints>=1.10.3 | ||
-e .[amazon,google,local,microsoft,minio,rackspace] | ||
-e .[docs,amazon,google,local,microsoft,minio,rackspace] |
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,27 @@ | ||
[tool.black] | ||
line-length = 88 | ||
target-version = ["py35", "py36", "py37", "py38"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[tool.check-manifest] | ||
ignore = [ | ||
".flake8", | ||
".pre-commit-config.yaml", | ||
".travis.yml", | ||
"pyproject.toml", | ||
"tox.ini", | ||
] |
Oops, something went wrong.