File tree 3 files changed +11
-19
lines changed
3 files changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,20 @@ dist: focal
3
3
language : python
4
4
python : 3.8
5
5
cache : pip
6
- before_install : pip install --upgrade pip setuptools six
7
- install : pip install black flake8
6
+ install :
7
+ - pip install --upgrade pip setuptools six
8
+ - pip install -r requirements_pytest.txt
8
9
jobs :
9
10
include :
10
11
- name : Build
11
- before_script :
12
- - black --check . || true
13
- - flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
14
- - scripts/validate_filenames.py # no uppercase, no spaces, in a directory
15
- - pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
16
12
script :
17
- - mypy --ignore-missing-imports . || true # https://github.com/python/mypy/issues/7907
18
13
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
19
14
- name : Project Euler
20
- before_script :
21
- - pip install pytest-cov pytest-subtests
22
- - pytest --tb=no --no-summary --capture=no project_euler/validate_solutions.py || true # fail fast on wrong solution
23
15
script :
16
+ - pytest --tb=no --no-summary --capture=no project_euler/validate_solutions.py || true # fail fast on wrong solution
24
17
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
25
18
after_success :
26
19
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
27
20
notifications :
28
- webhooks : https://www.travisbuddy.com/
29
- on_success : never
21
+ webhooks : https://www.travisbuddy.com/
22
+ on_success : never
Original file line number Diff line number Diff line change 1
1
beautifulsoup4
2
- black
3
2
fake_useragent
4
- flake8
5
3
keras
6
4
lxml
7
5
matplotlib
8
- mypy
9
6
numpy
10
7
opencv-python
11
8
pandas
12
9
pillow
13
- pre-commit
14
- pytest
15
- pytest-cov
16
10
requests
17
11
scikit-fuzzy
18
12
sklearn
Original file line number Diff line number Diff line change
1
+ -r requirements.txt
2
+
3
+ pytest
4
+ pytest-cov
5
+ pytest-subtests
You can’t perform that action at this time.
0 commit comments