-
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.
Merge pull request #109 from chrisjsewell/display-widgets
- Add sphinx compatibility with ipywidgets - Reformat code with black, and add pre-commit test to travis-ci - Fix some minor bugs/warnings
- Loading branch information
Showing
215 changed files
with
6,858 additions
and
4,768 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,3 +1,3 @@ | ||
[run] | ||
omit = | ||
omit = | ||
ipypublish/scripts/nb_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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = | ||
ignore = | ||
E203, # not compatible with black | ||
W503 # not compatible with black | ||
exclude = | ||
setup.py, | ||
ipypublish/scripts/ipynb_latex_setup.py, | ||
ipypublish/tests/test_files/basic_nb/expected/python_with_meta.py | ||
ipypublish/tests/test_files/basic_nb/expected/python_with_meta.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
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,39 +1,49 @@ | ||
# 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'] | ||
exclude: >- | ||
(?x)^( | ||
.vscode/settings.json| | ||
docs/build/.*| | ||
example/.*| | ||
ipypublish/tests/test_files/.*| | ||
ipypublish/sphinx/tests/sourcedirs/.*| | ||
ipypublish/sphinx/config.yaml| | ||
docs/source/custom_export_config.rst | ||
)$ | ||
# TODO docs/source/custom_export_config.rst is excleded because doc8 | ||
# complains about :linenos: in code-block | ||
repos: | ||
|
||
- 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: flake8 | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: local | ||
hooks: | ||
|
||
- id: doc8 | ||
name: RST Linting | ||
entry: doc8 | ||
language: system | ||
exclude: docs/build/* | ||
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 |
---|---|---|
|
@@ -16,4 +16,3 @@ python: | |
# builder: html | ||
# configuration: conf.py | ||
# fail_on_warning: true | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 +1 @@ | ||
skips: ['B101'] # TODO this should only skip in test files, see https://github.com/PyCQA/bandit/issues/346 | ||
skips: ['B101'] # TODO this should only skip in test files, see https://github.com/PyCQA/bandit/issues/346 |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ dependencies: | |
- pandas | ||
- sympy | ||
- pillow | ||
- ipywidgets |
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 +1 @@ | ||
pytest_plugins = 'sphinx.testing.fixtures' | ||
pytest_plugins = "sphinx.testing.fixtures" |
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 |
---|---|---|
|
@@ -250,5 +250,4 @@ TSWLatexianTemp* | |
|
||
# added by CJS | ||
.DS_Store | ||
*.frm | ||
|
||
*.frm |
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 |
---|---|---|
|
@@ -21619,4 +21619,4 @@ <h1 id="Embed-interactive-HTML-(like-ipywidgets)">Embed interactive HTML (like i | |
|
||
</body> | ||
|
||
</html> | ||
</html> |
Oops, something went wrong.