Skip to content
Open
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

17 changes: 17 additions & 0 deletions .idea/Projeto.iml

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

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

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

4 changes: 4 additions & 0 deletions .idea/misc.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: python
python:
- 3.7
- 3.9
install:
- pip install -q pipenv codecov
- pipenv sync --dev
- pip install -r requirements-dev.txt
script:
- flake8
- pytest libpythonpro --cov=libpythonpro
after_success:
- codecov
- pytest libpythonpro
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pytest-mock = "*"
requests = "*"

[requires]
python_version = "3.7"
python_version = "3.9"
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Nesse curso é ensinado como contribuir com projetos de código aberto

Link para o curso [Python Pro](https://www.python.pro.br/)

[![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro)
[![Build Status](https://app.travis-ci.com/Dansilllva/libpythonpro.svg?branch=master)](https://app.travis-ci.com/Dansilllva/libpythonpro)
[![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[![Python 3](https://pyup.io/repos/github/pythonprobr/libpythonpro/python-3-shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[![codecov](https://codecov.io/gh/pythonprobr/libpythonpro/branch/master/graph/badge.svg)](https://codecov.io/gh/pythonprobr/libpythonpro)
Expand All @@ -16,14 +16,15 @@ Suportada versão 3 de Python
Para instalar:

```console
pip install pipenv
pipenv install --dev
python3 -m venv .venv
.venv\Scripts\activate
pip install -r requirements-dev.txt
```

Para conferir qualidade de código:

```console
pipenv run flake8
flake8
```

Tópicos a serem abordados:
Expand Down
4 changes: 4 additions & 0 deletions libpythonpro/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ def buscar_avatar(usuario):
url = f'https://api.github.com/users/{usuario}'
resp = requests.get(url)
return resp.json()['avatar_url']


if __name__ == '__main__':
print(buscar_avatar('Dansilllva'))
Binary file added requirements-dev.txt
Binary file not shown.
Binary file added requirements.txt
Binary file not shown.