2020-03-14 23:55:13 +01:00
|
|
|
os: linux
|
2020-04-27 18:40:46 +02:00
|
|
|
dist: focal
|
2017-11-25 00:10:39 +01:00
|
|
|
language: python
|
2020-02-23 04:23:00 +01:00
|
|
|
python: 3.8
|
2019-07-08 17:27:51 +02:00
|
|
|
cache: pip
|
2020-02-23 04:23:00 +01:00
|
|
|
before_install: pip install --upgrade pip setuptools six
|
2020-05-22 08:10:11 +02:00
|
|
|
install: pip install black flake8
|
2020-06-08 14:11:01 +02:00
|
|
|
notifications:
|
|
|
|
webhooks: https://www.travisbuddy.com/
|
2020-06-10 12:40:52 +02:00
|
|
|
on_success: never
|
2019-07-08 17:27:51 +02:00
|
|
|
before_script:
|
2020-05-24 17:08:28 +02:00
|
|
|
- black --check . || true
|
2020-06-16 10:09:19 +02:00
|
|
|
- flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
|
2019-08-06 21:53:12 +02:00
|
|
|
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
2020-05-22 08:10:11 +02:00
|
|
|
- pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
|
|
|
|
script:
|
2019-07-08 17:27:51 +02:00
|
|
|
- mypy --ignore-missing-imports .
|
2020-08-25 15:47:06 +02:00
|
|
|
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=. .
|
2019-07-08 17:27:51 +02:00
|
|
|
after_success:
|
2019-10-31 23:06:20 -04:00
|
|
|
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|