forked from zenml-io/zenbytes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup linting and formatting dev tools (zenml-io#4)
* Move all .py code files into src/. * Add linting/formatting pre-commit hooks (requires poetry install). * Refactoring: reformat src/ with scripts/format.sh. * Add missing docstrings. * Remove mypy from lint script. * Moved requirements.txt contents into pyproject.toml. * Add *.ipynb to spell-checking.sh and fix all spelling issues. * Include .ipynb notebooks in linting/formatting. * Reformatted notebooks. * Fixed linting issues in notebooks. * Remove hardcoded UUID.
- Loading branch information
Showing
26 changed files
with
407 additions
and
168 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,3 @@ | ||
grey | ||
"\nTo" | ||
iam |
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 @@ | ||
[flake8] | ||
max-line-length = 79 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 | ||
ignore = E203, E266, E501, W503, F403, F401 | ||
exclude = __init__.py, pyproject.toml |
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 @@ | ||
[flake8_nb] | ||
max-line-length = 79 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 | ||
ignore = E402, F811, E501, E999, E226, E225, F401 | ||
keep_parsed_notebooks = False | ||
notebook_cell_format = {nb_path}#In[{exec_count}] |
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 |
---|---|---|
|
@@ -133,3 +133,6 @@ dmypy.json | |
|
||
# for wandb | ||
mlruns | ||
|
||
# poetry | ||
*poetry.lock* |
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 @@ | ||
fail_fast: true | ||
|
||
repos: | ||
- repo: local | ||
hooks: | ||
- id: lint | ||
name: lint | ||
entry: poetry run bash scripts/lint.sh | ||
language: system | ||
pass_filenames: false | ||
|
||
- repo: local | ||
hooks: | ||
- id: spellcheck | ||
name: spellcheck | ||
entry: poetry run bash scripts/check-spelling.sh | ||
language: system |
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.