Skip to content

Instantly share code, notes, and snippets.

@gonzalodiaz
gonzalodiaz / salida_precommit_errores.sh
Created June 7, 2020 18:04
SalidaPrecommitErroresSh
black....................................................................Failed
- hook id: black
- files were modified by this hook
reformatted /Users/gonzalodiaz/ws/sharing/tutorial-python-quality-code/src/docstyles/typing_style.py
All done! ✨ 🍰 ✨
1 file reformatted, 1 file left unchanged.
flake8...................................................................Passed
pydocstyle...............................................................Failed
- hook id: pydocstyle
- exit code: 1
@gonzalodiaz
gonzalodiaz / salida_precommit_short.sh
Created June 7, 2020 18:03
SalidaPreCommitShortSh
black....................................................................Failed
- hook id: black
- files were modified by this hook
reformatted /Users/gonzalodiaz/ws/sharing/tutorial-python-quality-code/src/docstyles/google_style.py
reformatted /Users/gonzalodiaz/ws/sharing/tutorial-python-quality-code/src/docstyles/numpy_style.py
reformatted /Users/gonzalodiaz/ws/sharing/tutorial-python-quality-code/src/docstyles/sphinx_style.py
reformatted /Users/gonzalodiaz/ws/sharing/tutorial-python-quality-code/src/docstyles/typing_style.py
All done! ✨ 🍰 ✨
4 files reformatted.
flake8...................................................................Passed
rm .git/hooks/pre-commit.legacy
git add .
git commit -m "Leves modificaciones"
@gonzalodiaz
gonzalodiaz / pre_commit_salida_larga.sh
Created June 7, 2020 18:01
PreCommitSalidaLargaSh
Running Linters...
Running Black...
All done! ✨ 🍰 ✨
6 files left unchanged.
Running Flake8...
Running pyDocStyle...
Running MyPy...
Success: no issues found in 6 source files
Congratulations! All went well.
[INFO] Initializing environment for https://github.com/psf/black.
@gonzalodiaz
gonzalodiaz / instalar_hook_precommit.sh
Created June 7, 2020 18:00
InstalarHookPrecommitSh
Running in migration mode with existing hooks at .git/hooks/pre-commit.legacy
Use -f to use only pre-commit.
pre-commit installed at .git/hooks/pre-commit
@gonzalodiaz
gonzalodiaz / default_precommit.sh
Created June 7, 2020 17:59
DefaultPreCommitSh
pre-commit sample-config > .pre-commit-config.yaml
@gonzalodiaz
gonzalodiaz / install_precommit.sh
Created June 7, 2020 17:59
InstallPrecommitSh
conda activate tutorial-python-quality-code-env
conda search pre-commit -c conda-forge
conda install pre-commit=2.4.0 -c conda-forge -y
@gonzalodiaz
gonzalodiaz / salida_run_commit.sh
Created June 7, 2020 17:58
SalidaRunCommitSh
Running Linters...
Running Black...
All done! ✨ 🍰 ✨
6 files left unchanged.
Running Flake8...
Running pyDocStyle...
Running MyPy...
Success: no issues found in 6 source files
Congratulations! All went well.
[repository_setup 7aaa337] Nuevo Commit
@gonzalodiaz
gonzalodiaz / link_simbolico.sh
Created June 7, 2020 17:56
linkSimbolicoSh
@gonzalodiaz
gonzalodiaz / salida_run_linters.sh
Created June 7, 2020 17:55
SalidaRunLintersSh
Running Black...
All done! ✨ 🍰 ✨
6 files left unchanged.
Running Flake8...
Running pyDocStyle...
Running MyPy...
Success: no issues found in 6 source files
Congratulations! All went well.