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/.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..52d3a93fb 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://travis-ci.org/pythonprobr/libpythonpro)
[](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
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'))
diff --git a/requirements-dev.txt b/requirements-dev.txt
new file mode 100644
index 000000000..69e388755
Binary files /dev/null and b/requirements-dev.txt differ
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