-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from greschd/dev
Release/0.1.1
- Loading branch information
Showing
36 changed files
with
197 additions
and
118 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 |
---|---|---|
|
@@ -24,3 +24,6 @@ tests/.cache | |
htmlcov | ||
.pytest-score | ||
htmlscore | ||
|
||
# editor related | ||
.vscode |
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,13 +1,15 @@ | ||
repos: | ||
- repo: git://github.com/pre-commit/mirrors-yapf | ||
sha: v0.24.0 | ||
rev: v0.29.0 | ||
hooks: | ||
- id: yapf | ||
language: system | ||
|
||
- repo: git://github.com/guykisel/prospector-mirror | ||
sha: 7ff847e779347033ebbd9e3b88279e7f3a998b45 | ||
- repo: local | ||
hooks: | ||
- id: prospector | ||
name: prospector | ||
entry: prospector | ||
types: [file, python] | ||
language: system | ||
exclude: '^(doc/)|(examples/)' |
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,22 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the doc/ directory with Sphinx | ||
sphinx: | ||
configuration: doc/source/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: [] | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: 3.7 | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# Author: Dominik Gresch <greschd@gmx.ch> | ||
|
||
# Be verbose, and stop with error as soon there's one | ||
set -ev | ||
|
||
cd ${TRAVIS_BUILD_DIR} | ||
|
||
pip install git+https://github.com/greschd/pytest-score.git | ||
|
||
case "$INSTALL_TYPE" in | ||
dev) | ||
pip install .[dev] | ||
;; | ||
test) | ||
pip install .[test] | ||
;; | ||
test_sdist) | ||
python setup.py sdist | ||
ls -1 dist/ | xargs -I % pip install dist/%[test] | ||
;; | ||
esac |
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,16 @@ | ||
#!/bin/bash | ||
|
||
# © 2017-2019, ETH Zurich, Institut für Theoretische Physik | ||
# Author: Dominik Gresch <greschd@gmx.ch> | ||
|
||
# Be verbose, and stop with error as soon there's one | ||
set -ev | ||
|
||
case "$TEST_TYPE" in | ||
test) | ||
cd ${TRAVIS_BUILD_DIR}/tests; pytest --no-plot-compare | ||
;; | ||
precommit) | ||
pre-commit run --all-files | ||
;; | ||
esac |
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,20 +1,21 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
|
||
- "3.7" | ||
- "3.8" | ||
env: | ||
- TEST_TYPE="test" | ||
matrix: | ||
INSTALL_TYPE="test" | ||
- TEST_TYPE="test" | ||
INSTALL_TYPE="test_sdist" | ||
jobs: | ||
include: | ||
- python: 3.6 | ||
env: TEST_TYPE="compliance" | ||
|
||
- python: "3.7" | ||
env: | ||
- TEST_TYPE="precommit" | ||
INSTALL_TYPE="dev" | ||
install: | ||
- pip install -U pytest | ||
- pip install --process-dependency-links .[test] | ||
|
||
- ./.travis-data/install_script.sh | ||
script: | ||
- if [ "$TEST_TYPE" == "compliance" ] ; then pip install .[dev]; pre-commit run --all-files ; fi | ||
- if [ "$TEST_TYPE" == "test" ] ; then cd tests; pytest --no-plot-compare ; fi | ||
- ./.travis-data/test_script.sh |
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
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
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
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
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.