- pip install pre-commit
- create file .pre-commit-config.yaml
- pre-commit install - git hook scripts
- git add files !!!
- pre-commit run --all-files or just commit... (-a)
- pre-commit autoupdate - update repos
- pip install pipreqs
- run pipreqs --encoding utf-8 --force --ignore .\tests\ . -
make requirements.txt for all .py files in current directory, force option to overwrite existing file, --print - to see only in terminal