-
Notifications
You must be signed in to change notification settings - Fork 6
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 #264 from rstudio/mbh-docs-tests
Enable fmt, lint, and docs
- Loading branch information
Showing
39 changed files
with
650 additions
and
855 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,8 +1,2 @@ | ||
build/ | ||
dist/ | ||
notebooks*/ | ||
*/node_modules/ | ||
*.egg-info/ | ||
.eggs/ | ||
*.pyc | ||
.git/ | ||
* | ||
!Pipfile* |
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,17 @@ | ||
[flake8] | ||
max_line_length = 120 | ||
show_source = true | ||
exclude = .git,.venv,.venv2,.venv3,__pycache__,.cache,.eggs | ||
|
||
# The following codes are ignored so that `flake8` plays nicer with how `black` | ||
# likes to format: | ||
# - E203: whitespace before ':' | ||
# - E231: missing whitespace after ',', ';', or ':' | ||
# - E302: expected 2 blank lines, found 0 | ||
# | ||
# ref: | ||
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes | ||
# | ||
extend_ignore = E203,E231,E302 | ||
|
||
# vim:filetype=dosini |
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,16 +1,18 @@ | ||
*.pyc | ||
/build/ | ||
/dist/ | ||
.DS_Store | ||
.coverage | ||
.vagrant | ||
/*.egg | ||
/*.egg-info | ||
/*.eggs | ||
/.conda/ | ||
/.idea/ | ||
/.jupyter/ | ||
/.local/ | ||
/.idea/ | ||
/build/ | ||
/dist/ | ||
/docs/out/ | ||
/node_modules/ | ||
/notebooks*/ | ||
/*.egg-info | ||
/*.egg | ||
/*.eggs | ||
.DS_Store | ||
.vagrant | ||
/rsconnect_jupyter/static/version.json | ||
/rsconnect_jupyter/version.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 |
---|---|---|
|
@@ -5,18 +5,30 @@ LABEL maintainer="RStudio Connect <[email protected]>" | |
ARG NB_UID | ||
ARG NB_GID | ||
ARG PY_VERSION | ||
RUN apt-get update -qq \ | ||
&& apt-get install -y make | ||
RUN apt-get update -qq && \ | ||
apt-get install -y make curl xz-utils git && \ | ||
curl -fsSL "https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.xz" | \ | ||
tar --strip-components=1 -C /usr/local -xJf - && \ | ||
npm install -g yarn | ||
|
||
RUN getent group ${NB_GID} || groupadd -g ${NB_GID} builder | ||
RUN useradd --password password \ | ||
--create-home \ | ||
--home-dir /home/builder \ | ||
--uid ${NB_UID} \ | ||
--gid ${NB_GID} \ | ||
builder | ||
|
||
RUN conda update conda | ||
builder && \ | ||
mkdir -p /rsconnect_jupyter && \ | ||
chown ${NB_UID}:${NB_GID} /rsconnect_jupyter | ||
|
||
USER ${NB_UID}:${NB_GID} | ||
RUN bash -c 'cd /home/builder \ | ||
&& conda create --yes --channel conda-forge --name py${PY_VERSION/./} python=${PY_VERSION} jupyter numpy matplotlib setuptools pip pipenv' | ||
WORKDIR /rsconnect_jupyter | ||
ENV WORKON_HOME=/home/builder \ | ||
PIPENV_DONT_LOAD_ENV=1 \ | ||
PIPENV_SHELL=/bin/bash \ | ||
PATH=/home/builder/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
COPY Pipfile Pipfile | ||
COPY Pipfile.lock Pipfile.lock | ||
RUN python -m pip install -I -U pip pipenv && \ | ||
pipenv install --dev --python=/usr/local/bin/python && \ | ||
rm -vf Pipfile* |
Oops, something went wrong.