This is a precommit hook that calls an API as a service, which validates the modified files to meet the PEP8 requirements.
- 1: Download: Just Click me
- OR
- 1: Clone the project or download the folder with the following command:
- Clone the project:
git clone https://github.com/kaiqueBellmont/GitHook-Arqmeds.git
root
|___ folder1
|___ folder2
|___ file...
|___ hook/...
pip install -r hook/requeriments.txt
poetry add click requests && poetry lock
python = "^3.10"
click = "^8.1.3"
requests = "^2.29.0"
cd hook/cli/ && python3 cli.py && cd ../..
This will create a pre-commit file inside the root/.git/hooks folder.
git clone https://github.com/kaiqueBellmont/githookAPI.git
Let's go to the next README
Let's go to the last one README
E.G:
git add filename.py
git commit -m file.py "my message"
or by ide also works. (tested in pycharm)