Added invoke and skipping single quotes in black

master
Drew Bednar 4 years ago
parent fe6cb532d1
commit 9db3510495

@ -0,0 +1,6 @@
black
flake8
invoke
pip-tools>=5.4.0
pytest
requests

@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile # This file is autogenerated by pip-compile
# To update, run: # To update, run:
# #
# pip-compile dev_requirements.in # pip-compile --output-file=dev_requirements.txt dev_requirements.in
# #
appdirs==1.4.3 # via black appdirs==1.4.3 # via black
attrs==19.3.0 # via black, pytest attrs==19.3.0 # via black, pytest
@ -13,11 +13,12 @@ click==7.0 # via black, pip-tools
entrypoints==0.3 # via flake8 entrypoints==0.3 # via flake8
flake8==3.7.9 # via -r dev_requirements.in flake8==3.7.9 # via -r dev_requirements.in
idna==2.8 # via requests idna==2.8 # via requests
invoke==1.4.1 # via -r dev_requirements.in
mccabe==0.6.1 # via flake8 mccabe==0.6.1 # via flake8
more-itertools==8.2.0 # via pytest more-itertools==8.2.0 # via pytest
packaging==20.1 # via pytest packaging==20.1 # via pytest
pathspec==0.7.0 # via black pathspec==0.7.0 # via black
pip-tools==4.4.1 # via -r dev_requirements.in pip-tools==5.4.0 # via -r dev_requirements.in
pluggy==0.13.1 # via pytest pluggy==0.13.1 # via pytest
py==1.8.1 # via pytest py==1.8.1 # via pytest
pycodestyle==2.5.0 # via flake8 pycodestyle==2.5.0 # via flake8
@ -31,3 +32,6 @@ toml==0.10.0 # via black
typed-ast==1.4.1 # via black typed-ast==1.4.1 # via black
urllib3==1.25.8 # via requests urllib3==1.25.8 # via requests
wcwidth==0.1.8 # via pytest wcwidth==0.1.8 # via pytest
# The following packages are considered to be unsafe in a requirements file:
# pip

@ -0,0 +1,11 @@
[tool.black]
line-length = 100
skip-string-normalization = true
target-version = ['py38']
exclude = '''
(
^/\.git/
| ^/build/
| ^/node_modules/
)
'''

@ -1,5 +0,0 @@
black
flake8
pip-tools
pytest
requests

@ -0,0 +1,9 @@
from invoke import task
UNVICORN_CMD = "uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000"
@task
def serve(c):
"""Serves the fast_api app for local development"""
c.run(f"pushd services/api && {UNVICORN_CMD}")
Loading…
Cancel
Save