File tree 5 files changed +58
-18
lines changed
5 files changed +58
-18
lines changed Original file line number Diff line number Diff line change
1
+ {% extends 'setup.cfg.jj2' %}
2
+ {% set packages = ['bears', '.ci'] %}
3
+ {% block extra_pytest_addopts %}
4
+ --ignore=tests/python/bandit_test_files/
5
+ {% endblock %}
Original file line number Diff line number Diff line change 1
- overrides : bear-requirements .yaml
1
+ overrides : .nocover .yaml
2
2
3
3
name : coala-bears
4
4
description : " Bears for coala (Code Analysis Application)"
@@ -11,6 +11,8 @@ branch: master
11
11
package_module : bears
12
12
docs_source_dir : API
13
13
docs_dir : docs
14
+ test_prevent_skips : false
15
+
14
16
entry_points :
15
17
coalabears :
16
18
- coala_official_bears = bears
@@ -25,6 +27,7 @@ configuration:
25
27
configuration_dir : ../coala-mobans/
26
28
targets :
27
29
- setup.py : bears-setup.py.jj2
30
+ - setup.cfg : bears-setup.cfg.jj2
28
31
- requirements.txt : requirements.txt.jj2
29
32
- test-requirements.txt : bears-test-requirements.txt.jj2
30
33
- bears/VERSION : VERSION.jj2
Original file line number Diff line number Diff line change
1
+ overrides : bear-requirements.yaml
2
+
3
+ allow_generic_no_cover : true
4
+
5
+ nocover_file_globs :
6
+ - .ci/*
Original file line number Diff line number Diff line change 2
2
python-tag = py34.py35.py36
3
3
4
4
[tool:pytest]
5
- norecursedirs =
6
- .git
7
- dist
8
- build
9
- venv
10
- .env
11
- .vendor
12
- vendor
13
- tests/python/bandit_test_files
14
- tests/python/pyroma_test_files
5
+ minversion = 3.6.1
6
+
7
+ testpaths =
8
+ bears
9
+ tests
10
+
15
11
python_files = *Test.py
16
12
python_classes = *Test
17
- timeout = 35
13
+
18
14
addopts =
19
- --color =yes
20
- --ignore =test-requirements.txt
21
- --profile
15
+ -r a
16
+ -p no:logging
17
+ --color =yes
18
+ --doctest-glob =*.rst
19
+ --doctest-modules
20
+ --doctest-ignore-import-error
21
+ --cov
22
+ --instafail
23
+ --profile
24
+ --reorder ' requirements.txt' ' test-requirements.txt' ' *'
25
+ --ignore =tests/python/bandit_test_files/
26
+
27
+ doctest_optionflags =
28
+ ELLIPSIS
29
+ IGNORE_EXCEPTION_DETAIL
30
+
22
31
env =
23
- PYTHONHASHSEED =0
24
- # PYTHONHASHSEED=0 is required to use same hashes in pytests-xdist's workers
32
+ PYTEST =1
33
+
25
34
python_paths = .ci/
26
35
36
+ reqsfilenamepatterns =
37
+ requirements.txt
38
+ test-requirements.txt
39
+
40
+ reqsignorevcs = True
41
+
42
+ timeout = 35
43
+
27
44
[coverage:coverage_env_plugin]
28
45
markers = True
29
46
42
59
tests/*
43
60
setup.py
44
61
.ci/*
45
- tests/python/bandit_test_files/
46
62
47
63
[coverage:report]
48
64
fail_under = 100
Original file line number Diff line number Diff line change
1
+ # Allow import to fail to avoid annoying developers
2
+ try :
3
+ from pytest_reqs import check_requirements
4
+ except ImportError :
5
+ check_requirements = None
6
+
7
+
8
+ if check_requirements :
9
+ def pytest_collection_modifyitems (config , session , items ):
10
+ check_requirements (config , session , items )
You can’t perform that action at this time.
0 commit comments