Hello, this is a mini-project still in it's development phase, it is a simple python script that automatically formats a code, run a code-style check then add, commit and push to your Github, amazing right?!!
- this program checks python files with pycodestyle
- checks C/C++ files with betty
- others[.js, .java, .cc files] with black code formatter
- This is tested on Ubuntu 20.04
lets get into it!!!
- install YAPF and black code formatters, [fun idea: read about them]
pip install yapf black
- install pycodestyle, betty, and flake8 to check coding style
pip install flake8 pycodestyle
To install betty for C/C++ programs:
git clone https://github.com/holbertonschool/Betty.git
cd Betty
sudo ./install.sh
*NOTE: If you encounter any issues during the installation, be sure to check the Betty repository for any updated instructions or troubleshooting tips.
-
now let the fun begin: clone this repo in the same directory as the files you want to check
git clone https://github.com/Kaywuyep/checker.git
cd checker
chmod u+x runchecks
-
almost done
mkdir FORMATTER
mv *.py __pycache__ README.md FORMATTER/
-
now we are completly set up: simply use
./runchecks
filename.py[or any extension available on this program] 'your commit message' -
kindly
git push
when you are done. And your files are now in you git repository
I would appreciate any corrections and a fork on this repo.