:handshake: update project meta data and :lipstick: update coding style
chfw
3 years ago
0 | 0 |
With your PR, here is a check list:
|
1 | 1 |
|
2 | |
- [ ] Has Test cases written
|
3 | |
- [ ] Has all code lines tested
|
|
2 |
- [ ] Has test cases written?
|
|
3 |
- [ ] Has all code lines tested?
|
4 | 4 |
- [ ] Has `make format` been run?
|
5 | 5 |
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
|
6 | 6 |
- [ ] Passes all Travis CI builds
|
7 | 7 |
- [ ] Has fair amount of documentation if your change is complex
|
8 | |
- [ ] run 'make format' so as to confirm the pyexcel organisation's coding style
|
9 | |
- [ ] Please add yourself to 'contributors' section of pyexcel-ods.yml (if not found, please use CONTRIBUTORS.rst)
|
10 | 8 |
- [ ] Agree on NEW BSD License for your contribution
|
4 | 4 |
runs-on: ubuntu-latest
|
5 | 5 |
name: synchronize templates via moban
|
6 | 6 |
steps:
|
7 | |
- uses: actions/checkout@v2
|
8 | |
with:
|
9 | |
ref: ${{ github.head_ref }}
|
10 | |
- name: Set up Python
|
11 | |
uses: actions/setup-python@v1
|
12 | |
with:
|
13 | |
python-version: '3.7'
|
14 | |
- name: check changes
|
15 | |
run: |
|
16 | |
pip install moban gitfs2 pypifs
|
17 | |
moban
|
18 | |
git status
|
19 | |
git diff --exit-code
|
20 | |
- name: Auto-commit
|
21 | |
if: failure()
|
22 | |
uses: docker://cdssnc/auto-commit-github-action
|
23 | |
env:
|
24 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
25 | |
with:
|
26 | |
args: This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst
|
|
7 |
- uses: actions/checkout@v2
|
|
8 |
with:
|
|
9 |
ref: ${{ github.head_ref }}
|
|
10 |
- name: Set up Python
|
|
11 |
uses: actions/setup-python@v1
|
|
12 |
with:
|
|
13 |
python-version: '3.7'
|
|
14 |
- name: check changes
|
|
15 |
run: |
|
|
16 |
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
|
|
17 |
moban
|
|
18 |
git status
|
|
19 |
git diff --exit-code
|
|
20 |
- name: Auto-commit
|
|
21 |
if: failure()
|
|
22 |
uses: docker://cdssnc/auto-commit-github-action
|
|
23 |
env:
|
|
24 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
25 |
with:
|
|
26 |
args: >-
|
|
27 |
This is an auto-commit, updating project meta data,
|
|
28 |
such as changelog.rst, contributors.rst
|
|
0 |
|
0 | 1 |
|
1 | 2 |
3 contributors
|
2 | 3 |
================================================================================
|
3 | 4 |
|
4 | 5 |
In alphabetical order:
|
5 | 6 |
|
6 | |
* `Azamat H. Hackimov <https://api.github.com/users/winterheart>`_
|
7 | |
* `John Vandenberg <https://api.github.com/users/jayvdb>`_
|
8 | |
* `Mateusz Konieczny <https://api.github.com/users/matkoniecz>`_
|
|
7 |
* `Azamat H. Hackimov <https://github.com/winterheart>`_
|
|
8 |
* `John Vandenberg <https://github.com/jayvdb>`_
|
|
9 |
* `Mateusz Konieczny <https://github.com/matkoniecz>`_
|
4 | 4 |
|
5 | 5 |
install_test:
|
6 | 6 |
pip install -r tests/requirements.txt
|
7 | |
|
8 | |
git-diff-check:
|
9 | |
git diff --exit-code
|
10 | 7 |
|
11 | 8 |
lint:
|
12 | 9 |
bash lint.sh
|
0 | 0 |
pip install flake8
|
1 | |
flake8 . --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long
|
2 | |
python setup.py checkdocs
|
|
1 |
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs
|
20 | 20 |
# See the License for the specific language governing permissions and
|
21 | 21 |
# limitations under the License.
|
22 | 22 |
|
|
23 |
import pyexcel_io.service as service
|
23 | 24 |
from odf.text import P
|
24 | 25 |
from odf.table import Table, TableRow, TableCell
|
25 | 26 |
|
26 | 27 |
# Thanks to grt for the fixes
|
27 | 28 |
from odf.teletype import extractText
|
28 | 29 |
from odf.namespaces import OFFICENS
|
|
30 |
from pyexcel_io.book import BookReader
|
29 | 31 |
from odf.opendocument import load
|
30 | |
|
31 | |
import pyexcel_io.service as service
|
32 | |
from pyexcel_io.book import BookReader
|
33 | 32 |
from pyexcel_io.sheet import SheetReader
|
34 | 33 |
from pyexcel_io._compact import OrderedDict
|
35 | 34 |
|
8 | 8 |
"""
|
9 | 9 |
import sys
|
10 | 10 |
|
|
11 |
import pyexcel_io.service as converter
|
11 | 12 |
from odf.text import P
|
12 | 13 |
from odf.table import Table, TableRow, TableCell
|
13 | 14 |
from odf.namespaces import OFFICENS
|
|
15 |
from pyexcel_io.book import BookWriter
|
14 | 16 |
from odf.opendocument import OpenDocumentSpreadsheet
|
15 | |
|
16 | |
import pyexcel_io.service as converter
|
17 | |
from pyexcel_io.book import BookWriter
|
18 | 17 |
from pyexcel_io.sheet import SheetWriter
|
19 | 18 |
|
20 | 19 |
PY2 = sys.version_info[0] == 2
|
1 | 1 |
# -*- encoding: utf-8 -*-
|
2 | 2 |
import os
|
3 | 3 |
|
|
4 |
import psutil
|
4 | 5 |
import pyexcel as pe
|
5 | 6 |
from pyexcel_ods import get_data, save_data
|
|
7 |
from pyexcel_io.exceptions import IntegerAccuracyLossError
|
6 | 8 |
|
7 | |
import psutil
|
8 | 9 |
from nose import SkipTest
|
9 | 10 |
from nose.tools import eq_, raises
|
10 | |
from pyexcel_io.exceptions import IntegerAccuracyLossError
|
11 | 11 |
|
12 | 12 |
IN_TRAVIS = "TRAVIS" in os.environ
|
13 | 13 |
|
0 | 0 |
import os
|
1 | 1 |
|
|
2 |
from pyexcel_io import get_data, save_data
|
|
3 |
|
2 | 4 |
from nose.tools import eq_
|
3 | |
from pyexcel_io import get_data, save_data
|
4 | 5 |
|
5 | 6 |
|
6 | 7 |
class TestFilter:
|