Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- 3.6
- 3.7
install:
- pip install -q -r requirements-dev.txt
script:
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": ".venv/bin/python3.7"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# libpythonpro
Módulo para exemplificar construção de projetos Python no curso PyTools
Módulo para exemplificar construção de projetos Python no curso PyTools.

Nesse curso é ensinado como contribuir com projetos de código aberto
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)

Suportada versão 3 de Python
Suportada versão 3 de Python.

Para instalar:

Expand Down
6 changes: 3 additions & 3 deletions libpythonpro/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def buscar_avatar(usuario):
:return: str com o link do avatar
"""
url = f'https://api.github.com/users/{usuario}'
resp = requests.get(url)
return resp.json()['avatar_url']
response = requests.get(url)
return response.json()['avatar_url']


if __name__ == '__main__':
print(buscar_avatar('renzon'))
print(buscar_avatar('ernanidacosta'))
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flake8==3.5.0
flake8==3.7.9
mccabe==0.6.1
pycodestyle==2.3.1
pyflakes==1.6.0
pycodestyle==2.5.0
pyflakes==2.1.1
-r requirements.txt
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
certifi==2018.4.16
certifi==2019.11.28
chardet==3.0.4
idna==2.6
requests==2.18.3
urllib3==1.22
idna==2.8
requests==2.22.0
urllib3==1.25.7