Skip to content

Commit

Permalink
Merge branch 'hotfix/0.2.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
emfomy committed Mar 7, 2022
2 parents 1e8031a + 4faa3bd commit d3abf92
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 27 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
venv
.venv
activate

# Docs
docs/_api/
docs/_build/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -71,9 +75,6 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

Expand Down
16 changes: 8 additions & 8 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release TODO

- change version number
- make sure requirements.txt and test/requirements.txt matches setup.py.

- >> make clean
- >> make format
- >> make lint
- >> make doc
- >> make tox
- >> make tox-report
- > > make clean
- > > make lint
- > > make doc
- > > make tox
- > > make tox-report
- merge to master branch
- >> make clean
- >> make upload
- > > make clean
- > > make upload
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ RM = rm -rf
TWINE = twine
TOX = tox
LINT = pylint --rcfile=./.pylintrc
FORMAT = $(PY) -m black --color --diff
FORMAT = black --color

.PHONY: all check dist sdist test tox tox-v tox-vv tox-report lint format doc upload clean
.PHONY: all check dist sdist test tox tox-v tox-vv tox-report lint doc upload clean

all: dist check test

Expand All @@ -17,10 +17,8 @@ sdist bdist_wheel:
$(PY) setup.py $@

lint:
$(LINT) ckip_transformers

format:
$(FORMAT) ckip_transformers
$(LINT) ckip_transformers

check:
$(TWINE) check dist/*
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ NLP Tools Usage
.. code-block:: python
# Sets the batch size and maximum sentence length
ws = ws_driver(text, batch_size=256, max_length=512)
ws = ws_driver(text, batch_size=256, max_length=128)
4. Show results
"""""""""""""""
Expand Down
2 changes: 1 addition & 1 deletion ckip_transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
__copyright__ = "2020 CKIP Lab"

__title__ = "CKIP Transformers"
__version__ = "0.2.7"
__version__ = "0.2.8"
__description__ = "CKIP Transformers"
__license__ = "GPL-3.0"

Expand Down
18 changes: 10 additions & 8 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
/* header */

h1 {
font-size: 250%;
font-size: 250%;

display: inline-block;
border-bottom: 3px solid #2980b9;
display: inline-block;
border-bottom: 3px solid #2980b9;
}

/* content */

.rst-content p.rubric {
font-size: 125%;
font-size: 125%;
}

.rst-content table.docutils th p {
margin-bottom: 0;
margin-bottom: 0;
}

.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
color: #0057A9;
.rst-content tt.literal,
.rst-content tt.literal,
.rst-content code.literal {
color: #0057a9;
}

.wy-nav-content {
max-width: 1280px;
max-width: 1280px;
}

0 comments on commit d3abf92

Please sign in to comment.