Requirements:
- Windows 10
- Python 3.6
- Git for Windows (https://git-scm.com/download/win)
Environment Setup
-
Open 'Windows PowerShell' in Administrator mode
-
Run the following command as a single line. This will install
chocolatyon your computer.Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) -
When
chocolatyis installed, run the following command to install PMD (static analyzer tool).choco install -y pmd
Running Program
- Clone & open the project in Pycharm
- Create a Python 3.6 virtual environment for the project (tutorial: https://www.youtube.com/watch?v=ZvQY-FdsYGE).
- Run
pip install -r requirements.txtin the root directory to install requirements. - Run
python main.pyto run the program
References
PMDcross-language static code analyzer (https://pmd.github.io)- for static code analysis
gitpythonpython package (https://gitpython.readthedocs.io/en/stable/)- for counting & cloning user repositories
PyGithubpython package (https://pygithub.readthedocs.io/en/stable/)- for getting meta information about user & repositories