This is a demo repository for installing a pre-commit hook for executing black for Python code refactoring
Steps:
- Install
pre-commit
usingpip install pre-commit
- create
.pre-commit-config.yaml
in project root and add required repos - run
pre-commit install
on root to install the hooks - run
pre-commit uninstall
to uninstall hooks - run
pre-commit run --all-files
to manually run the hooks
more info on this @https://pre-commit.com/#usage
- run
pip install pyment
to install pyment - run
pyment -o google .
for generating atomic google docstrings. Files are not overwritten (.patch files are created) - run
pyment -o google -w .
for overwriting existing.py
files with atomic google docstrings.
more info on this @https://github.com/dadadel/pyment
possibly you might wanna remove *.py.patch
files