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
32 changed files
with
1,529 additions
and
1,120 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: Enforce import order | ||
language: system | ||
entry: isort | ||
args: [--apply, --recursive] | ||
types: [python] | ||
language_version: python | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint check | ||
language: system | ||
entry: pylint | ||
args: [--rcfile=pylintrc] | ||
types: [python] | ||
- id: flake8 | ||
name: flake8 check | ||
language: system | ||
entry: flake8 | ||
types: [python] |
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,22 +1,29 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- 3.6 | ||
- 3.5 | ||
- 3.4 | ||
|
||
matrix: | ||
include: | ||
- python: 3.6 | ||
env: SKIP_BLACK=false | ||
- python: 3.5 | ||
env: SKIP_BLACK=true | ||
- python: 3.4 | ||
env: SKIP_BLACK=true | ||
|
||
before_install: | ||
- pip install -U pip | ||
- pip install -U -r test_requirements.txt | ||
|
||
install: python setup.py develop | ||
|
||
before_script: | ||
- pip list | ||
|
||
script: | ||
- pip list | ||
- pytest --verbose --cov=mtg_ssm | ||
- pylint mtg_ssm | ||
- pylint --disable=similarities,redefined-outer-name tests | ||
- pytest | ||
- '[ "$SKIP_BLACK" == "true" ] || black --check .' | ||
- isort --check --diff --recursive | ||
- flake8 | ||
- pylint mtg_ssm tests | ||
|
||
after_script: coveralls |
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
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
Oops, something went wrong.