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