[all]
files = src/**/*.py
max_line_length = 120
use_spaces = True

[all.python]
# Patches may conflict with autopep8 so putting them in own section so they
# will be executed sequentially; also we need the LineLengthBear to double
# check the line length because PEP8Bear sometimes isn't able to correct the
# linelength.
bears = SpaceConsistencyBear, QuotesBear
language = python
default_actions = *: ApplyPatchAction
preferred_quotation = '

[all.flakes]
# Do not set default_action to ApplyPatchAction as it may lead to some
# required imports being removed which might result in coala behaving weirdly.
default_action: *: ShowPatchAction
bears = PyUnusedCodeBear
language = Python

[all.autopep8]
bears = PEP8Bear, PycodestyleBear
default_actions = PEP8Bear: ApplyPatchAction

[all.linelength]  # Sometimes autopep8 makes too long lines, need to check after!
bears = LineLengthBear
ignore_length_regex = ^.*https?://

[all.LineCounting]
enabled = False
bears = LineCountBear
max_lines_per_file = 1000

[rst]
bear = reSTLintBear
files = **.rst

[all.TODOS]
enabled = False
bears = KeywordBear
language = python3

# Note that the ci_keywords and cs_keywords are only used here because coala
# 0.8.x (current stable release) needs them.
ci_keywords, keywords = \#TODO, \# TODO, \#FIXME, \# FIXME
cs_keywords =

[all.PythonPackageInit]
bears = PythonPackageInitBear
ignore = *.py

