-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit config * Add pre-commit job to CI * Ensure repo is checked out * Fix file endings * Add cache * Fix cache * Only run tests if pre-commit passes * Improve ReactiveHTML whitespace handling
- Loading branch information
1 parent
869549c
commit 95c8d16
Showing
146 changed files
with
388 additions
and
376 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
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 |
---|---|---|
|
@@ -11,8 +11,24 @@ on: | |
- cron: '0 19 * * SUN' | ||
|
||
jobs: | ||
pre_commit: | ||
name: Run pre-commit hooks | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "1" | ||
- name: set PY | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: pre-commit | ||
uses: pre-commit/[email protected] | ||
test_suite: | ||
name: Pytest on ${{ matrix.os }} with Python ${{ matrix.python-version }} | ||
needs: [pre_commit] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
|
@@ -25,7 +41,7 @@ jobs: | |
timeout-minutes: 60 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
shell: bash -l {0} | ||
env: | ||
DESC: "Python ${{ matrix.python-version }} tests" | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
|
@@ -67,7 +83,7 @@ jobs: | |
run: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate test-environment | ||
conda install "pip<21.2.1" "toml" | ||
conda install "pip<21.2.1" "toml" | ||
conda list | ||
doit develop_install -o examples -o recommended -o tests -o build | ||
pip install pyecharts idom | ||
|
@@ -84,11 +100,6 @@ jobs: | |
eval "$(conda shell.bash hook)" | ||
conda activate test-environment | ||
doit env_capture | ||
- name: doit test_flakes | ||
run: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate test-environment | ||
doit test_flakes | ||
- name: doit test_unit | ||
run: | | ||
eval "$(conda shell.bash hook)" | ||
|
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 @@ | ||
# This is the configuration for pre-commit, a local framework for managing pre-commit hooks | ||
# Check out the docs at: https://pre-commit.com/ | ||
|
||
default_stages: [commit] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
exclude: \.min\.js$ | ||
- id: trailing-whitespace | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 # See 'setup.cfg' for args | ||
args: [panel] | ||
files: panel/ |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.