This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent(object): | |
def __init__(self): | |
print('Building the Parent class') | |
class Child(Pai): | |
def __init__(self): | |
super(Child, self).__init__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[settings] | |
known_third_party = ["pytest", "requests"] | |
[tool.black] | |
line-length = 120 | |
[tool.isort] | |
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests.models import Response | |
from ingresso import Ingresso, __version__ | |
def test_version(): | |
assert __version__ == "0.1.0" | |
class TestIngresso: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from ingresso import Ingresso | |
@pytest.fixture | |
def ingresso(): | |
return Ingresso( | |
48, | |
"cinepolis", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .ingresso import Ingresso # noqa | |
__version__ = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.models import Response | |
class Ingresso(object): | |
__URL = "https://api-content.ingresso.com/v0/" | |
def __init__( | |
self, | |
city_id: int, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[settings] | |
known_third_party = ["pytest", "requests"] | |
[tool.black] | |
line-length = 120 | |
[tool.isort] | |
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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 |
NewerOlder