Skip to content

Instantly share code, notes, and snippets.

View hudsonbrendon's full-sized avatar
🏠
Working from home

Hudson Brendon hudsonbrendon

🏠
Working from home
View GitHub Profile
class Parent(object):
def __init__(self):
print('Building the Parent class')
class Child(Pai):
def __init__(self):
super(Child, self).__init__()
import random
# TODO: Implemente a função de busca binária para o computador
def binary_search_guess(low: int, high: int) -> int:
mid = (low + high) // 2
print(f"O computador chutou {mid}!")
return mid
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/ambv/black
[settings]
known_third_party = ["pytest", "requests"]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
from requests.models import Response
from ingresso import Ingresso, __version__
def test_version():
assert __version__ == "0.1.0"
class TestIngresso:
import pytest
from ingresso import Ingresso
@pytest.fixture
def ingresso():
return Ingresso(
48,
"cinepolis",
from .ingresso import Ingresso # noqa
__version__ = "0.1.0"
import requests
from requests.models import Response
class Ingresso(object):
__URL = "https://api-content.ingresso.com/v0/"
def __init__(
self,
city_id: int,
[settings]
known_third_party = ["pytest", "requests"]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
#### Language Code:BR
## Language Version:20220325
## Maximum byte per keyword is 250 Bytes.
## Escape characters are not supported except newline '\n'
br_label_language:Português BRASIL
br_label_emulated_m600:M600 emulado
br_label_emulated_m109_m190:M109 / M190 emulado
br_label_event_led:Event LED
br_label_file_comment_parsing:Análise de comentários em arquivos