add nbstripout pre-commit

This commit is contained in:
Casper da Costa-Luis 2021-03-08 23:54:13 +00:00
parent 06698c5e97
commit 5cd575b8a8
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
3 changed files with 9 additions and 5 deletions

View File

@ -52,3 +52,9 @@ repos:
rev: 5.7.0 rev: 5.7.0
hooks: hooks:
- id: isort - id: isort
repos:
- repo: https://github.com/kynan/nbstripout
rev: master
hooks:
- id: nbstripout
args: ['--keep-count', '--keep-output']

View File

@ -1714,15 +1714,12 @@
}, },
"language_info": { "language_info": {
"codemirror_mode": { "codemirror_mode": {
"name": "ipython", "name": "ipython"
"version": 3
}, },
"file_extension": ".py", "file_extension": ".py",
"mimetype": "text/x-python", "mimetype": "text/x-python",
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python"
"pygments_lexer": "ipython3",
"version": "3.7.8"
} }
}, },
"nbformat": 4, "nbformat": 4,

View File

@ -29,6 +29,7 @@ dependencies:
# extras # extras
- dask # dask - dask # dask
- matplotlib # gui - matplotlib # gui
- nbstripout # notebook editing
- numpy # pandas, keras, contrib.tenumerate - numpy # pandas, keras, contrib.tenumerate
- pandas - pandas
- tensorflow # keras - tensorflow # keras