-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove restriction on Sphinx<2.0 (#92)
Changes include: - implement `HTML2JSONParser` and `pytest-regressions` for testing HTML documents Rather then searching for specific bits of text, we convert the document to a json object, stripping out sections irrelevant for testing (like the header, footer and scripts that can change between versions). and test with the `data_regression` fixture - Add pre_commit configuration - Update .travis.yml to test python 3.7 rather than 3.4 (which is deprecated) - Update RTD configuration - version bump fixes #76
- Loading branch information
1 parent
707d239
commit 87b35a5
Showing
30 changed files
with
2,576 additions
and
366 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,4 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = | ||
setup.py, | ||
ipypublish/scripts/ipynb_latex_setup.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,39 @@ | ||
# Install pre-commit hooks via | ||
# pre-commit install | ||
|
||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: v2.2.3 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: double-quote-string-fixer | ||
- id: flake8 | ||
|
||
- repo: local | ||
hooks: | ||
|
||
- id: yapf | ||
name: Yet Another Python Formatter | ||
entry: yapf | ||
language: system | ||
types: [python] | ||
args: ["-i", "-vv"] | ||
exclude: > | ||
(?x)^( | ||
setup.py | ||
)$ | ||
- id: doc8 | ||
name: RST Linting | ||
entry: doc8 | ||
language: system | ||
types: [rst] | ||
|
||
# - id: travis-linter | ||
# name: Travis Lint | ||
# entry: travis lint | ||
# files: .travis.yml | ||
# language: ruby | ||
# additional_dependencies: ['travis'] |
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 @@ | ||
[style] | ||
based_on_style = google | ||
column_limit = 120 |
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,5 @@ | ||
#!/usr/bin/env bash | ||
find . -name "*.pyc" -delete; | ||
find . -name "*.pyo" -delete; | ||
find . -name "__pycache__" -delete; | ||
find . -name ".pytest_cache" -delete; |
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,50 @@ | ||
# Usage: | ||
# $ conda env create -n ipypublish_dev -f conda_dev_env.yaml | ||
# $ conda activate ipypublish_dev | ||
# $ pip install --no-deps -e . | ||
--- | ||
name: ipypublish_dev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- pip | ||
- python =3.6 | ||
|
||
- bibtexparser | ||
- docutils | ||
- jinja2 | ||
- jsonextended >=0.7 | ||
- jsonschema | ||
- jupytext | ||
- nbconvert | ||
- nbformat | ||
- ordered-set | ||
- pandoc =2.6 | ||
- panflute | ||
- ruamel.yaml | ||
- setuptools | ||
- six | ||
- sphinx >=1.6 | ||
- sphinxcontrib-bibtex | ||
- texsoup <0.2 | ||
- tornado | ||
- traitlets | ||
# testing | ||
- pytest >=3.6 | ||
- pytest-regressions | ||
- nbsphinx | ||
- pillow | ||
- ipykernel | ||
# style | ||
- autopep8 | ||
- doc8 | ||
- flake8 <3.8.0,>=3.7.0 | ||
- rope | ||
- pre_commit =1.14.4 | ||
- yapf =0.26.0 | ||
# docs | ||
- sphinx_rtd_theme | ||
- jupyter | ||
- matplotlib | ||
- pandas | ||
- sympy <1.3 |
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,3 +1,3 @@ | ||
from ipypublish.scripts import nb_setup # noqa: F401 | ||
|
||
__version__ = '0.10.4' | ||
__version__ = '0.10.5' |
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.