fix: linter warnings

This commit is contained in:
2023-07-19 02:33:50 -03:00
parent a09984f19a
commit df3033bc6e
6 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
__version__ = "0.1.2" __version__ = "0.1.3"
from .client import PPGEE from .client import PPGEE
__all__ = [
"PPGEE",
]

View File

@@ -34,7 +34,10 @@ async def cli():
def main(): def main():
try:
asyncio.run(cli()) asyncio.run(cli())
except KeyboardInterrupt:
print("Keyboard Interrupt. Exiting.")
if __name__ == "__main__": if __name__ == "__main__":

View File

@@ -39,7 +39,7 @@ class PPGEE:
await self.login() await self.login()
return self return self
async def __aexit__(self, exc_type, exc, tb) -> None: async def __aexit__(self, *_) -> None:
if self.is_logged: if self.is_logged:
await self.logoff() await self.logoff()
await self.close() await self.close()

View File

@@ -1 +1,5 @@
from .frequency import FrequencyPage from .frequency import FrequencyPage
__all__ = [
"FrequencyPage",
]

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "ppgee" name = "ppgee"
version = "0.1.2" version = "0.1.3"
description = "" description = ""
authors = ["tiagovla <tiagovla@gmail.com>"] authors = ["tiagovla <tiagovla@gmail.com>"]

View File

@@ -2,4 +2,4 @@ from ppgee import __version__
def test_version(): def test_version():
assert __version__ == "0.1.2" assert __version__ == "0.1.3"