Calmcode - flake8: config

Config

1 2 3 4 5 6 7

Instead of passing everything on the command line you may also choose to have a config file. You can configure errors to ignore but also files to exclude.

This is what our .flake8 file looks like;

[flake8]
# W291 - we dont care about trailing whitespace
# E302 - one line between functions is fine
ignore = W291,E302
exclude = ignore_this.py

The ignore_this.py file merely contains an import statement that is not used.

import pandas as pd

This is not a good python file to have lying around but it does demonstrate how flake8 can be configured to ignore certain files.