-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤝 demo: synchronize generated project with organisation's meta data u…
…sing moban. MolSSI/cookiecutter-cms#81
- Loading branch information
Showing
12 changed files
with
76 additions
and
32 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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
With your PR, here is a check list: | ||
|
||
- [ ] Has Test cases written | ||
- [ ] Has all code lines tested | ||
- [ ] Has test cases written? | ||
- [ ] Has all code lines tested? | ||
- [ ] Has `make format` been run? | ||
- [ ] Has `moban` been run? | ||
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst) | ||
- [ ] Passes all Travis CI builds | ||
- [ ] Has fair amount of documentation if your change is complex | ||
- [ ] run 'make format' so as to confirm the pyexcel organisation's coding style | ||
- [ ] Please update CHANGELOG.rst | ||
- [ ] Please add yourself to CONTRIBUTORS.rst | ||
- [ ] Agree on NEW BSD License for your contribution |
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,29 @@ | ||
on: [push] | ||
|
||
jobs: | ||
run_moban: | ||
runs-on: ubuntu-latest | ||
name: synchronize templates via moban | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
- name: check changes | ||
run: | | ||
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible | ||
moban | ||
git status | ||
git diff --exit-code | ||
- name: Auto-commit | ||
if: failure() | ||
uses: docker://cdssnc/auto-commit-github-action | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: >- | ||
This is an auto-commit, updating project meta data, | ||
such as changelog.rst, contributors.rst |
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,6 @@ | ||
|
||
|
||
No contributors yet | ||
======================= | ||
|
||
* Your github link will be listed here after your PR is merged |
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,5 +1,16 @@ | ||
all: test | ||
|
||
test: | ||
test: lint | ||
bash test.sh | ||
|
||
install_test: | ||
pip install -r tests/requirements.txt | ||
|
||
lint: | ||
bash lint.sh | ||
|
||
format: | ||
bash format.sh | ||
|
||
git-diff-check: | ||
git diff --exit-code |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
isort $(find pyexcel_webio -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo) | ||
black -l 79 pyexcel_webio | ||
black -l 79 tests |
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,2 @@ | ||
pip install flake8 | ||
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs |
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
locale.setlocale(locale.LC_ALL, "en_US.UTF-8") | ||
|
||
NAME = "pyexcel-webio" | ||
AUTHOR = "C.W." | ||
AUTHOR = "chfw" | ||
VERSION = "0.1.4" | ||
EMAIL = "[email protected]" | ||
LICENSE = "New BSD" | ||
|
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