Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ install:
- "pip install pipenv"
- "pipenv install --dev --skip-lock"
script:
- "make test lint check-fmt"
- "make test"
- "make lint"
- "make check-fmt"
after_success:
- coveralls
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ APP = app
TEST = tests

test:
$(PYTHON) `which py.test` -s -v $(TEST)

pytest -v $(TEST) --cov-report term --cov-report xml --cov=$(APP)
lint:
pylint $(APP) || true

Expand Down
12 changes: 6 additions & 6 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ verify_ssl = true
[dev-packages]
bandit = "*"
black = "==19.10b0"
coveralls = "*"
invoke = "*"
isort = "*"
pytest = "*"
pylint = "*"
pytest = "*"
pytest-cov = "*"

[packages]
cachetools = "*"
fastapi = "*"
flask = "*"
python-dotenv = "*"
requests = "*"
gunicorn = "*"
flask-cors = "*"
cachetools = "*"
python-dateutil = "*"
python-dotenv = "*"
requests = "*"
uvicorn = "*"

[requires]
Expand Down
177 changes: 98 additions & 79 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Provides up-to-date data about Coronavirus outbreak. Includes numbers about conf
Support multiple data-sources.

![Travis build](https://api.travis-ci.com/ExpDev07/coronavirus-tracker-api.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/ExpDev07/coronavirus-tracker-api/badge.svg?branch=master)](https://coveralls.io/github/ExpDev07/coronavirus-tracker-api?branch=master)
[![License](https://img.shields.io/github/license/ExpDev07/coronavirus-tracker-api)](LICENSE.md)
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
[![GitHub stars](https://img.shields.io/github/stars/ExpDev07/coronavirus-tracker-api)](https://github.com/ExpDev07/coronavirus-tracker-api/stargazers)
Expand Down
2 changes: 0 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# See PEP396.
__version__ = "2.0"

from .core import create_app
24 changes: 0 additions & 24 deletions app/core.py

This file was deleted.

6 changes: 0 additions & 6 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
"""
app.main.py
"""
import datetime as dt
import logging
import os
import reprlib

import pydantic
import uvicorn
from fastapi import FastAPI, Request, Response
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse

from .core import create_app
from .data import data_source
from .models.latest import LatestResponse as Latest
from .models.location import LocationResponse as Location
from .models.location import LocationsResponse as Locations
from .router.v1 import router as v1router
from .router.v2 import router as v2router

Expand Down