-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor. Please refer to the `Design Overview` session in docs for more details. - Support both `matplotlib` and `plotly`. - Update tutorials according to the refactor codes. - Better unit test. - Semi-automate dosctring generation.
- Loading branch information
Showing
119 changed files
with
1,686,681 additions
and
12,981 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 |
---|---|---|
|
@@ -3,9 +3,9 @@ include = | |
./* | ||
|
||
omit = | ||
*tests* | ||
tests/* | ||
*/_version.py | ||
docs/* | ||
docs_history/* | ||
notebooks/* | ||
tutorials/* | ||
.tox/* | ||
assets/* |
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,19 @@ | ||
[flake8] | ||
max-line-length=100 | ||
# B905 should be enabled when we drop support for 3.9 | ||
ignore = E203, E266, E501, W503, B905, B907 | ||
# line length is intentionally set to 80 here because black uses Bugbear | ||
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details | ||
max-line-length = 80 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 | ||
exclude = | ||
.git | ||
__pycache__ | ||
tox.ini | ||
docs/* | ||
docs_history/* | ||
notebooks/* | ||
tutorials/* | ||
.* | ||
*.cfg | ||
*.in | ||
ignore= | ||
*.in | ||
versioneer.py | ||
*/__init__.py |
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,73 @@ | ||
name: Tox Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*.*.*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
toxenv: [py39, docs] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # this is equivalent to Travis CI's `git fetch` in before_install | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Run Tox | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
run: tox -e $TOXENV | ||
|
||
# This step will set up a display that you can use for running tests that require a GUI (like certain selenium tests) | ||
- name: Run xvfb | ||
run: | | ||
sudo apt-get install -y xvfb | ||
export DISPLAY=:99.0 | ||
sudo Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
sleep 3 | ||
- name: Upload coverage.xml as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage | ||
path: ./coverage.xml | ||
|
||
upload-codecov: | ||
needs: ['test'] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download coverage.xml artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
file: ./coverage.xml | ||
fail_ci_if_error: true |
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 |
---|---|---|
|
@@ -110,3 +110,8 @@ venv.bak/ | |
_build | ||
_static | ||
_templates | ||
|
||
# OS generated files | ||
.DS_Store | ||
.DS_Store? | ||
._* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
include versioneer.py | ||
include pdpbox/_version.py | ||
include README.md | ||
include requirements.txt |
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.