2017-11-25 07:10:39 +08:00
|
|
|
language: python
|
2019-07-03 15:21:03 +08:00
|
|
|
python: 3.7
|
2019-07-08 23:27:51 +08:00
|
|
|
cache: pip
|
2019-07-10 12:59:39 +08:00
|
|
|
before_install: pip install --upgrade pip setuptools
|
2019-07-08 23:27:51 +08:00
|
|
|
install: pip install -r requirements.txt
|
|
|
|
before_script:
|
|
|
|
- black --check . || true
|
2020-02-08 04:02:08 +08:00
|
|
|
- flake8 . --count --select=E101,E722,E9,F4,F63,F7,F82,W191 --show-source --statistics
|
2019-12-21 08:44:31 +08:00
|
|
|
- flake8 . --count --exit-zero --max-line-length=127 --statistics
|
2019-07-08 23:27:51 +08:00
|
|
|
script:
|
2019-08-07 03:53:12 +08:00
|
|
|
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
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
|