Skip to content

Commit

Permalink
Add static analysis with coala
Browse files Browse the repository at this point in the history
  • Loading branch information
underyx committed Jul 18, 2016
1 parent 789a483 commit 55be10f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[default]
files = *.py, *.yml, *.yaml, *.rst, *.ini
bears =
SpaceConsistencyBear,
LineLengthBear,
LineCountBear,
KeywordBear,
InvalidLinkBear,
GitCommitBear,

use_spaces = True
max_line_length = 120
max_lines_per_file = 1000

ci_keywords = FIXME, pdb.set_trace()
cs_keywords =

ignore_regex = {.+} # for InvalidLinkBear

shortlog_length = 72

[yaml]
limit_files = *.yml, *.yaml
bears =
FilenameBear,
YAMLLintBear,

file_naming_convention = snake
tab_width = 2

[python]
limit_files = *.py
bears =
FilenameBear,
PyImportSortBear,
PyUnusedCodeBear,
RadonBear,
PEP8Bear,

file_naming_convention = snake

force_single_line_imports = no
isort_multi_line_output = 5
include_trailing_comma_in_import = yes
default_import_section = THIRDPARTY

[rest]
limit_files = *.rst
bears =
reSTLintBear,
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist =
static_analysis,
py27-flask{09,011}-redis{26,210},
py{34,35}-flask011-redis{26,210}

Expand All @@ -8,6 +9,12 @@ envlist =
3.4 = py34
3.5 = py35

[testenv:static_analysis]
deps =
coala
coala-bears
commands = coala-ci

[testenv]
passenv =
TRAVIS
Expand Down

0 comments on commit 55be10f

Please sign in to comment.