berkyaglioglu / Post-Sharing-Application

Django Framework
0 stars 0 forks source link

Add Flake8 #3

Open gokselcoban opened 5 years ago

gokselcoban commented 5 years ago

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.

gokselcoban commented 5 years ago

You can add .flake8 file to ignore some rules.

.flake8

[flake8]
ignore = E501,F403,F405,E126,E121,W503