-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
* 🔥 Generate each Dockerfile during tests * 🙈 Add testing (generated) Dockerfiles to .gitignore * 🔧 Update format scripts * 🎨 Add types and format to tests * 🐳 Update pip command order to disable cache
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM python:3.6 | |
|
||
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
RUN pip --no-cache-dir install uvicorn gunicorn | ||
RUN pip install --no-cache-dir uvicorn gunicorn | ||
|
||
COPY ./start.sh /start.sh | ||
RUN chmod +x /start.sh | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM python:3.7 | |
|
||
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
RUN pip --no-cache-dir install uvicorn gunicorn | ||
RUN pip install --no-cache-dir uvicorn gunicorn | ||
|
||
COPY ./start.sh /start.sh | ||
RUN chmod +x /start.sh | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[mypy] | ||
disallow_untyped_defs = True | ||
ignore_missing_imports = True |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
|
||
# Sort imports one per line, so autoflake can remove unused imports | ||
isort --recursive --force-single-line-imports --apply ./ | ||
sh ./scripts/format.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
mypy ./ | ||
black ./ --check | ||
isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.