Skip to content

Instantly share code, notes, and snippets.

@gonzalodiaz
gonzalodiaz / errores_flake8_2.sh
Created June 7, 2020 17:53
ErroresFlake8_2.Sh
./src/docstyles/google_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/google_style.py:8:80: E501 line too long (82 > 79 characters)
./src/docstyles/typing_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/sphinx_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/sphinx_style.py:21:20: W291 trailing whitespace
./src/docstyles/numpy_style.py:3:1: W293 blank line contains whitespace
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, 2 files left unchanged.
conda activate tutorial-python-quality-code-env
conda search black
conda install black=19.10b -y
src/docstyles/typing_style.py:26: error: Incompatible return value type (got "Dict[Any, Any]", expected "int")
src/docstyles/typing_style.py:26: error: Argument 1 to "population" of "World" has incompatible type "str"; expected "int"
Found 2 errors in 1 file (checked 6 source files)
conda activate tutorial-python-quality-code-env
conda search mypy
conda install mypy=0.770 -y
@gonzalodiaz
gonzalodiaz / errores_pydocstyle.sh
Created June 7, 2020 17:49
ErroresPyDocStyleSh
./src/docstyles/typing_style.py:1 at module level:
D100: Missing docstring in public module
./src/docstyles/typing_style.py:9 in public method `__init__`:
D107: Missing docstring in __init__
./src/docstyles/numpy_style.py:1 at module level:
D100: Missing docstring in public module
./src/docstyles/numpy_style.py:2 in public class `World`:
D413: Missing blank line after last section ('Attributes')
./src/docstyles/numpy_style.py:2 in public class `World`:
D413: Missing blank line after last section ('Attributes')
@gonzalodiaz
gonzalodiaz / install_pydocstyle.sh
Created June 7, 2020 17:48
InstallPyDocStyleSh
conda activate tutorial-python-quality-code-env
conda search pydocstyle
conda install pydocstyle=4.0.1 -y
@gonzalodiaz
gonzalodiaz / errores_flake8.sh
Created June 7, 2020 17:47
ErroresFlake8Sh
./src/docstyles/typing_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/typing_style.py:10:31: E203 whitespace before ':'
./src/docstyles/typing_style.py:19:51: W292 no newline at end of file
./src/docstyles/numpy_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/numpy_style.py:30:51: W292 no newline at end of file
./src/docstyles/sphinx_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/sphinx_style.py:21:20: W291 trailing whitespace
./src/docstyles/sphinx_style.py:23:51: W292 no newline at end of file
./src/docstyles/google_style.py:3:1: W293 blank line contains whitespace
./src/docstyles/google_style.py:8:80: E501 line too long (82 > 79 characters)
@gonzalodiaz
gonzalodiaz / install_flake8.sh
Created June 7, 2020 17:46
InstallFlake8Sh
conda activate tutorial-python-quality-code-env
conda search flake8
Loading channels: done
# Name Version Build Channel
flake8 3.4.1 py27haba0547_0 pkgs/main
...
flake8 3.7.9 py27_0 pkgs/main
flake8 3.7.9 py36_0 pkgs/main
flake8 3.7.9 py37_0 pkgs/main
mkdir tutorial-python-quality-code
cd tutorial-python-quality-code
conda create -n tutorial-python-quality-code-env python=3.8.3 -y
conda activate tutorial-python-quality-code-env
touch tox.ini