Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
167 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
######################### | ||
# Flake8 Configuration # | ||
# (.flake8) # | ||
######################### | ||
[flake8] | ||
# flake8 | ||
exclude = | ||
*.egg-info, | ||
*.pyc, | ||
.cache, | ||
.eggs | ||
.git, | ||
.tox, | ||
__pycache__, | ||
build, | ||
dist, | ||
docs/source/conf.py, | ||
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s | ||
ignore = S101 | ||
max-line-length = 120 | ||
|
||
# flake8-import-order | ||
application-import-names = | ||
bio2bel_phosphosite | ||
bio2bel | ||
tests | ||
import-order-style = pycharm | ||
|
||
# mccabe | ||
max-complexity = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# See: https://docs.readthedocs.io/en/latest/yaml-config.html | ||
python: | ||
version: 3 | ||
pip_install: true | ||
extra_requirements: | ||
- docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
sudo: false | ||
cache: pip | ||
services: | ||
- mysql | ||
language: python | ||
python: 3.6 | ||
env: | ||
global: | ||
- BIO2BEL_CONNECTION=mysql+pymysql://travis@localhost/bio2bel?charset=utf8' | ||
matrix: | ||
- TOXENV=py | ||
- TOXENV=docs | ||
- TOXENV=manifest | ||
- TOXENV=readme | ||
before_install: | ||
- pip install codecov | ||
- pip install pymysql | ||
- mysql -e 'CREATE DATABASE bio2bel CHARACTER SET utf8 COLLATE utf8_general_ci;' | ||
- mysql -e "GRANT ALL PRIVILEGES ON bio2bel.* to 'travis'@'%' WITH GRANT OPTION;" | ||
python: | ||
- 3.6 | ||
stages: | ||
- lint | ||
- docs | ||
- test | ||
jobs: | ||
include: | ||
# lint stage | ||
- stage: lint | ||
env: TOXENV=manifest | ||
- env: TOXENV=flake8 | ||
- env: TOXENV=vulture | ||
- env: TOXENV=mypy | ||
- env: TOXENV=pyroma | ||
# docs stage | ||
- stage: docs | ||
env: TOXENV=doc8 | ||
- env: TOXENV=readme | ||
- env: TOXENV=docs | ||
# test stage | ||
- stage: test | ||
env: TOXENV=py | ||
matrix: | ||
allow_failures: | ||
- env: TOXENV=doc8 | ||
- env: TOXENV=docs | ||
- env: TOXENV=flake8 | ||
- env: TOXENV=vulture | ||
- env: TOXENV=mypy | ||
- env: TOXENV=pyroma | ||
install: | ||
- pip install tox | ||
- sh -c 'if [ "$TOXENV" = "py" ]; then pip install tox codecov; else pip install tox; fi' | ||
script: | ||
- tox | ||
after_success: | ||
- tox -e coverage-report | ||
- codecov | ||
- sh -c 'if [ "$TOXENV" = "py" ]; then tox -e coverage-report; codecov; fi' | ||
notifications: | ||
slack: pybel:n2KbWKBum3musnBg3L76gGwq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters