forked from coala/coala-bears
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.coafile
87 lines (72 loc) · 2.26 KB
/
.coafile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[all]
files = *.py, bears/**/*.py, tests/**/*.py, .moban.dt/*.py.in
ignore = tests/python/test_files/pylint_test.py, tests/python/bandit_test_files/*,
tests/python/vulture_test_files/*,
.ci/Fudge*.ps*
max_line_length = 80
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.CI]
files = .ci/*
bears = SpaceConsistencyBear
[all.commit]
bears = GitCommitBear
shortlog_trailing_period = False
shortlog_regex = ([^:]*|[^:]+: [A-Z0-9*].*)
body_close_issue = True
body_close_issue_full_url = True
body_close_issue_on_last_line = True
body_enforce_issue_reference = False
[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
[all.yml]
bears = YAMLLintBear
files = *.yml, *.yaml, .ci/*.yml, tests/**/*.yml
ignore = MYMETA.yml
[bash]
bears = ShellCheckBear
files = .ci/*.sh
shell = bash
shellcheck_ignore = SC2046, SC2154, SC2155
[jinja2]
bears = Jinja2Bear
files = **.jj2
check_end_labels = False
# Bug in handling of ".. list | sort"
ignore = .moban.dt/Gemfile.jj2, .moban.dt/bear-requirements.txt.jj2, .moban.dt/package.json.jj2, .moban.dt/bears-travis.yml.jj2