From 180d95d7463b5b60940769962bb13e13af837316 Mon Sep 17 00:00:00 2001 From: adnirJunior Date: Wed, 12 Jan 2022 21:59:49 -0300 Subject: [PATCH 1/4] Adicionada Flake8 --- libpythonpro/github_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py index 8b0fbafb9..91d9de383 100644 --- a/libpythonpro/github_api.py +++ b/libpythonpro/github_api.py @@ -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('AdnirJunior')) From 83441f8159f813c1a07c6902e44093065fd04e91 Mon Sep 17 00:00:00 2001 From: adnirJunior Date: Wed, 12 Jan 2022 22:50:28 -0300 Subject: [PATCH 2/4] adicionado no README --- .travis.yml | 1 + README.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6694375b7..6e3a24e2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ python: - 3.7 install: - pip install -q pipenv codecov + - pip install -q -r requirements-dev.txt - pipenv sync --dev script: - flake8 diff --git a/README.md b/README.md index 676c14d7f..00dceadc7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Nesse curso é ensinado como contribuir com projetos de código aberto Link para o curso [Python Pro](https://www.python.pro.br/) +https://pyup.io/repos/github/AdnirJunior/libpythonpro/python-3-shield.svg?t=1642038307488 + [![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/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/) From 26a92ade50d65f0f6798d0894c698b8a8629d9bb Mon Sep 17 00:00:00 2001 From: adnirJunior Date: Wed, 12 Jan 2022 22:51:50 -0300 Subject: [PATCH 3/4] adicionado no README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00dceadc7..52d3a93fb 100644 --- a/README.md +++ b/README.md @@ -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/) -https://pyup.io/repos/github/AdnirJunior/libpythonpro/python-3-shield.svg?t=1642038307488 + [![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro) [![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) From 03e7955b306220d682053c9ca55bdd2a271deb0e Mon Sep 17 00:00:00 2001 From: adnirJunior Date: Thu, 13 Jan 2022 15:25:02 -0300 Subject: [PATCH 4/4] Varias Alteracoes --- .idea/.gitignore | 3 +++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/libpythonpro.iml | 17 +++++++++++++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ requirements-dev.txt | Bin 0 -> 242 bytes requirements.txt | 5 +++++ 8 files changed, 49 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/libpythonpro.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 requirements-dev.txt create mode 100644 requirements.txt diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..26d33521a --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 000000000..105ce2da2 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/libpythonpro.iml b/.idea/libpythonpro.iml new file mode 100644 index 000000000..985f4aa3b --- /dev/null +++ b/.idea/libpythonpro.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..44d004b4c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..3478ad2cf --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..94a25f7f4 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000000000000000000000000000000000000..69e38875535ea13337a8bc89188bda822902d7db GIT binary patch literal 242 zcmYL@Q4WGI5Jca%iFe=v7%|51<6$abAX-ogiFkNrwggQxO}lS)cE6v38b?o{Vj!iZ z)6c7Rr{S$?&spcdj=hxW-m>8;?zoBPksp8DsHf0zT*R&0I#03N=z~eLqZAFAIw@=M n*_1pct-k-95R=TY%rZx+?GmZt$*6tp<)v1sLC%4fWX@GHKszOP literal 0 HcmV?d00001 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..34a1417f6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +requests~=2.27.1 +certifi==2018.4.16 +chardet==3.0.4 +idna==2.6 +urllib3==1.22