Browse Source

add online services conf files

Bastien Sevajol 9 years ago
parent
commit
192d12acb1
4 changed files with 49 additions and 0 deletions
  1. 9 0
      .coveragerc
  2. 1 0
      .coveralls.yml
  3. 30 0
      .scrutinizer.yml
  4. 9 0
      .travis.yml

+ 9 - 0
.coveragerc View File

@@ -0,0 +1,9 @@
1
+[run]
2
+omit =
3
+    */tests*
4
+    config.py
5
+    run.py
6
+[report]
7
+exclude_lines =
8
+    raise NotImplementedError
9
+    if __name__ == .__main__.:

+ 1 - 0
.coveralls.yml View File

@@ -0,0 +1 @@
1
+service_name: travis-ci

+ 30 - 0
.scrutinizer.yml View File

@@ -0,0 +1,30 @@
1
+filter:
2
+    excluded_paths: [modules/*]
3
+checks:
4
+    python:
5
+        format_bad_indentation:
6
+            indentation: '4 spaces'
7
+        format_mixed_indentation: true
8
+        format_line_too_long:
9
+            max_length: '79'
10
+        imports_relative_import: true
11
+        imports_wildcard_import: true
12
+        format_bad_whitespace: true
13
+        format_multiple_statements: true
14
+        basic_invalid_name:
15
+            functions: '[a-z_][a-z0-9_]{2,30}$'
16
+            variables: '[a-z_][a-z0-9_]{2,30}$'
17
+            whitelisted_names: 'i,j,k,ex,Run,_'
18
+            constants: '(([A-Z_][A-Z0-9_]*)|(__.*__))$'
19
+            attributes: '[a-z_][a-z0-9_]{2,30}$'
20
+            arguments: '[a-z_][a-z0-9_]{2,30}$'
21
+            class_attributes: '([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$'
22
+            inline_vars: '[A-Za-z_][A-Za-z0-9_]*$'
23
+            classes: '[A-Z_][a-zA-Z0-9]+$'
24
+            modules: '(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$'
25
+            methods: '[a-z_][a-z0-9_]{2,30}$'
26
+        classes_no_self_argument: true
27
+        classes_bad_mcs_method_argument: true
28
+        classes_bad_classmethod_argument: true
29
+        code_rating: true
30
+        duplicate_code: true

+ 9 - 0
.travis.yml View File

@@ -0,0 +1,9 @@
1
+language: python
2
+python:
3
+  - "3.4"
4
+install:
5
+  - "pip install -r tests_requirements.txt"
6
+script: 
7
+  - coverage run tests.py --rcfile=.coveragerc -v && coverage report -m && python3.4 tests.py
8
+after_success:
9
+  - coveralls