Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikulin committed Jan 1, 2021
0 parents commit 3da4af6
Show file tree
Hide file tree
Showing 8 changed files with 401 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Distribution / packaging
dist/

# User-specific stuff:
.idea/

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# Config
settings.py
settings_test.py

# Log files
log/*

18 changes: 18 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "~=5.0"
pytest-cov = "~=2.7"


[packages]
requests = "~=2.22"
fastapi = "~=0.60"
uvicorn = "~=0.11.0" # when going up to 0.12 we should install websockets manually


[requires]
python_version = "3.7"
340 changes: 340 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

Empty file added service/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions service/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from fastapi import FastAPI, Body

app = FastAPI()


@app.get("/")
async def root():
return {"message": "Hello World"}
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88

[flake8]
ignore = E203, E266, E501, W503
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4

Empty file added tests/__init__.py
Empty file.
4 changes: 4 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


def test_app():
pass

0 comments on commit 3da4af6

Please sign in to comment.