Browse Source

Add python linting step to travis build

rafalp 6 years ago
parent
commit
55a80a019b
2 changed files with 7 additions and 12 deletions
  1. 0 11
      .style.yapf
  2. 7 1
      .travis.yml

+ 0 - 11
.style.yapf

@@ -1,11 +0,0 @@
-[style]
-coalesce_brackets = true
-column_limit=99
-dedent_closing_brackets = true
-each_dict_entry_on_separate_line = true
-indent_dictionary_value = true
-join_multiple_lines = false
-split_arguments_when_comma_terminated = true
-split_before_first_argument = true
-split_before_logical_operator = true
-split_before_named_assigns = true

+ 7 - 1
.travis.yml

@@ -13,4 +13,10 @@ before_script:
 script:
   - pytest --cov=misago
 after_success:
-  - coveralls
+  - coveralls
+matrix:
+  include:
+    - python: 3.6
+      script:
+        - pip install black
+        - black --check devproject misago