Skip to content

Commit f39c277

Browse files
committed
Merge branch 'master' of https://github.com/ExpDev07/coronavirus-tracker-api into add-requirements-txt
2 parents e090fd6 + 2b2fc19 commit f39c277

39 files changed

+659
-255
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,7 @@ docs/_build/
6666
target/
6767

6868
# OSX Stuff
69-
.DS_Store
69+
.DS_Store
70+
71+
# IntelliJ/Pycharm
72+
.idea/

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contribution to Coronavirus Tracker API
2+
3+
First off, thanks for taking the time to contribute!
4+
Every commit supports the open source ecosystem in case of [COVID-19](https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic).
5+
6+
## Testing
7+
8+
We have a handful of unit tests to cover most of functions.
9+
Please write new test cases for new code you create.
10+
11+
## Submitting changes
12+
13+
* If you're unable to find an open issue, [open a new one](https://github.com/ExpDev07/coronavirus-tracker-api/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible
14+
* Open a new [GitHub Pull Request to coronavirus-tracker-api](https://github.com/ExpDev07/coronavirus-tracker-api/pulls) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). Include the relevant issue number if applicable.
15+
* We will love you forever if you include unit tests. We can always use more test coverage
16+
17+
## Your First Code Contribution
18+
19+
Unsure where to begin contributing to coronavirus-tracker-api ? You can start by looking through these issues labels:
20+
21+
* [Enhancement issues](https://github.com/ExpDev07/coronavirus-tracker-api/labels/enhancement) - issues for new feature or request
22+
* [Help wanted issues](https://github.com/ExpDev07/coronavirus-tracker-api/labels/help%20wanted) - extra attention is needed
23+
* [Documentation issues](https://github.com/ExpDev07/coronavirus-tracker-api/labels/documentation) - improvements or additions to documentation
24+
25+
## Styleguide
26+
27+
Please follow [PEP8](https://www.python.org/dev/peps/pep-0008/) guide.
28+
See [Running Test](./README.md#running-tests), [Linting](./README.md#linting) and [Formatting](./README.md#formatting) sections for further instructions to validate your change.
29+
30+
31+
We encourage you to pitch in and join the [Coronavirus Tracker API Team](https://github.com/ExpDev07/coronavirus-tracker-api#contributors-)!
32+
33+
Thanks! :heart: :heart: :heart:
34+
35+
[Coronavirus Tracker API Team](https://github.com/ExpDev07/coronavirus-tracker-api#contributors-)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ TEST = tests
1717
test:
1818
pytest -v $(TEST) --cov-report term --cov-report xml --cov=$(APP)
1919
lint:
20-
pylint $(APP) || true
20+
pylint $(APP)
2121

2222
fmt:
2323
invoke fmt

Pipfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,28 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7+
async-asgi-testclient = "*"
8+
async_generator = "*"
9+
asyncmock = "*"
710
bandit = "*"
811
black = "==19.10b0"
912
coveralls = "*"
13+
importlib-metadata = {version="*", markers="python_version<'3.8'"}
1014
invoke = "*"
1115
isort = "*"
1216
pylint = "*"
1317
pytest = "*"
18+
pytest-asyncio = "*"
1419
pytest-cov = "*"
1520

1621
[packages]
22+
aiohttp = "*"
23+
asyncache = "*"
1724
cachetools = "*"
25+
dataclasses = {version="*", markers="python_version<'3.7'"}
1826
fastapi = "*"
1927
gunicorn = "*"
28+
idna_ssl = {version="*", markers="python_version<'3.7'"}
2029
python-dateutil = "*"
2130
python-dotenv = "*"
2231
requests = "*"

Pipfile.lock

Lines changed: 180 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Support multiple data-sources.
1414
[![GitHub last commit](https://img.shields.io/github/last-commit/ExpDev07/coronavirus-tracker-api)](https://github.com/ExpDev07/coronavirus-tracker-api/commits/master)
1515
[![GitHub pull requests](https://img.shields.io/github/issues-pr/ExpDev07/coronavirus-tracker-api)](https://github.com/ExpDev07/coronavirus-tracker-api/pulls)
1616
[![GitHub issues](https://img.shields.io/github/issues/ExpDev07/coronavirus-tracker-api)](https://github.com/ExpDev07/coronavirus-tracker-api/issues)
17+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/ExpDev07/coronavirus-tracker-api.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ExpDev07/coronavirus-tracker-api/alerts/)
1718
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1819
[![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2FExpDev07%2Fcoronavirus-tracker-api)](https://twitter.com/intent/tweet?text=COVID19%20Live%20Tracking%20API:%20&url=https%3A%2F%2Fgithub.com%2FExpDev07%2Fcoronavirus-tracker-api)
1920

app/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
"""
2+
Corona Virus Tracker API
3+
~~~~~~~~~~~~~~~~~~~~~~~~
4+
API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak.
5+
"""
16
# See PEP396.
2-
__version__ = "2.0"
7+
__version__ = "2.0.1"

app/config/settings.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
"""app.config.settings.py"""
12
import os
23

34
# Load enviroment variables from .env file.
45
from dotenv import load_dotenv
56

67
load_dotenv()
78

8-
"""
9-
The port to serve the app application on.
10-
"""
11-
PORT = int(os.getenv("PORT", 5000))
9+
# The port to serve the app application on.
10+
PORT = int(os.getenv("PORT", "5000"))

app/coordinates.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""app.coordinates.py"""
2+
3+
14
class Coordinates:
25
"""
36
A position on earth using decimal coordinates (latitude and longitude).

0 commit comments

Comments
 (0)