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