Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code linter #58

Closed
wants to merge 8 commits into from
2 changes: 2 additions & 0 deletions roles/jupyter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jupyterlab_extensions: >
@pyviz/[email protected]
[email protected]
[email protected]
@ryantam626/[email protected]
[email protected]
# JupyterLab extensions that should not be installed, space seperated list
jupyterlab_obsolete_extensions: >
@ewatercycle/jupyterlab_thredds
Expand Down
7 changes: 7 additions & 0 deletions roles/jupyter/files/jupyterlab_code_formatter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"NotebookApp": {
"nbserver_extensions": {
"jupyterlab_code_formatter": true
}
}
}
10 changes: 10 additions & 0 deletions roles/jupyter/tasks/lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
- tqdm==4.30.0
- scitools-iris==2.2.0
- hydrostats==0.75
- black==19.10b0
- yapf==0.30.0
- isort==4.3.21
- autopep8==1.5.3
- jupyterlab_code_formatter==1.3.1
- flake8==3.8.3
- name: Jupyter server code formatter extension
copy:
src: jupyterlab_code_formatter.json
dest: /usr/local/etc/jupyter/jupyter_notebook_config.d/jupyterlab_code_formatter.json
- name: Jupyterlab uninstall obsolete extensions
command: jupyter labextension uninstall {{ jupyterlab_obsolete_extensions }}
- name: Jupyterlab extensions
Expand Down