Open gokselcoban opened 5 years ago
Run python<version> -m pip install flake8 to install flake8. Example: python3.6 -m pip install flake8
python<version> -m pip install flake8
python3.6 -m pip install flake8
From the repo's root run flake8 --install-hook git to install pre-commit hooks for Git.
flake8 --install-hook git
Run git config --bool flake8.strict true to prevent you from creating a commit with these hooks.
git config --bool flake8.strict true
You can add .flake8 file to ignore some rules.
.flake8
[flake8] ignore = E501,F403,F405,E126,E121,W503
Flake8
Installation
Run
python<version> -m pip install flake8
to install flake8. Example:python3.6 -m pip install flake8
Using Version Control Hooks
From the repo's root run
flake8 --install-hook git
to install pre-commit hooks for Git.Preventing Commits
Run
git config --bool flake8.strict true
to prevent you from creating a commit with these hooks.