Calmcode - flake8: 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;

# W291 - we dont care about trailing whitespace
# E302 - one line between functions is fine
ignore = W291,E302
exclude =

The 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.