8000 Exclude files for flake8 and pytest in the same way · faif/python-patterns@02b653a · GitHub
[go: up one dir, main page]

Skip to content

Commit 02b653a

Browse files
committed
Exclude files for flake8 and pytest in the same way
1 parent f7e9ed1 commit 02b653a

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ install:
1616
- pip install -r requirements-dev.txt
1717

1818
script:
19-
- pytest --doctest-modules patterns/
19+
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" = 2 ]; then export PYEXCLUDE=3; else export PYEXCLUDE=2; fi
20+
- flake8 --exclude="*__py${PYEXCLUDE}.py" patterns/
21+
- pytest --doctest-modules --ignore-glob="*__py${PYEXCLUDE}.py" patterns/
2022
- pytest -s -vv --cov=. --log-level=INFO tests/
2123
# Actually run all the scripts, contributing to coverage
2224
- PYTHONPATH=. ./run_all.sh
23-
- flake8 patterns/
2425

2526
after_success:
2627
- codecov

conftest.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
-e .
2-
pytest~=4.1
3-
pytest-cov~=2.6
4-
flake8~=3.6
5-
codecov~=2.0
6-
mock~=2.0
2+
3+
pytest~=4.3.0
4+
pytest-cov~=2.6.0
5+
flake8~=3.7.0
6+
codecov~=2.0.0
7+
8+
mock~=2.0.0; python_version < "3.*"

0 commit comments

Comments
 (0)
0