From c1d649876b8a28daac22e9279ad309d1801a1624 Mon Sep 17 00:00:00 2001 From: Ernani da Costa Date: Tue, 14 Jan 2020 15:18:00 -0300 Subject: [PATCH 1/8] =?UTF-8?q?Atualizada=20pontua=C3=A7=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 980f7db5c..374256de0 100644 --- a/README.md +++ b/README.md @@ -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: From 4345f698f0ef98636c343564ac76de905600924a Mon Sep 17 00:00:00 2001 From: Ernani da Costa Date: Thu, 16 Jan 2020 11:57:57 -0300 Subject: [PATCH 2/8] Update command --- .vscode/settings.json | 3 +++ libpythonpro/github_api.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..eee641d0e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": ".venv/bin/python3.7" +} \ No newline at end of file diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py index 7d29e4e68..3282fa793 100644 --- a/libpythonpro/github_api.py +++ b/libpythonpro/github_api.py @@ -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')) From 684ce692dddf1d08155d1135157a33c3589104aa Mon Sep 17 00:00:00 2001 From: Ernani da Costa Date: Thu, 16 Jan 2020 12:12:59 -0300 Subject: [PATCH 3/8] Aprendido a usar o flake8 e o requirements-dev.txt --- requirements-dev.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index a9fca4b76..12c3f1cb9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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 \ No newline at end of file From a815c14e4c41c67ce00bf7322f8fd182388e41f5 Mon Sep 17 00:00:00 2001 From: Ernani da Costa Date: Thu, 16 Jan 2020 12:25:54 -0300 Subject: [PATCH 4/8] Update python version on Travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3a1469e52..b4ef11fcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - 3.6 + - 3.7 install: - pip install -q -r requirements-dev.txt script: From d232c225fa29e3bc9e7c2aac1fb9f6231b90c45c Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Thu, 16 Jan 2020 12:46:03 -0300 Subject: [PATCH 5/8] Update certifi from 2018.4.16 to 2019.11.28 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 86431e80a..277b7ced0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -certifi==2018.4.16 +certifi==2019.11.28 chardet==3.0.4 idna==2.6 requests==2.18.3 From 87ad1f8859db2ced0a1e11de493e7d4ab4c281b8 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Thu, 16 Jan 2020 12:46:04 -0300 Subject: [PATCH 6/8] Update idna from 2.6 to 2.8 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 277b7ced0..b0f1305bc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ certifi==2019.11.28 chardet==3.0.4 -idna==2.6 +idna==2.8 requests==2.18.3 urllib3==1.22 From c4a39ac24e2d888f528d0b7f3a6a1cea58bf459b Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Thu, 16 Jan 2020 12:46:06 -0300 Subject: [PATCH 7/8] Update requests from 2.18.3 to 2.22.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b0f1305bc..ba6343bfe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ certifi==2019.11.28 chardet==3.0.4 idna==2.8 -requests==2.18.3 +requests==2.22.0 urllib3==1.22 From bd414dc4c8dcf0784a5e86c3c6b1b56a0b1c3906 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Thu, 16 Jan 2020 12:46:08 -0300 Subject: [PATCH 8/8] Update urllib3 from 1.22 to 1.25.7 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ba6343bfe..1d30af3f1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ certifi==2019.11.28 chardet==3.0.4 idna==2.8 requests==2.22.0 -urllib3==1.22 +urllib3==1.25.7