Skip to content

Commit

Permalink
fix(pyproject.toml): reorder dependencies alphabetically for better r…
Browse files Browse the repository at this point in the history
…eadability

feat(pyproject.toml): add new development dependencies for testing and code quality
fix(api.py): wrap signal handling in try-except block to prevent crashes on unsupported platforms
  • Loading branch information
NodeJSmith committed Jul 13, 2024
1 parent 554e968 commit b55df47
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 20 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,37 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.10"
aiohttp = "3.9.5"
loguru = "0.7.2"
pydantic = "2.7.3"
pycognito = "2024.5.1"
typer = { version = "^0.12.3", extras = ["cli"] }
pendulum = { version = "^3.0.0", extras = ["cli"] }


readchar = { version = "^4.1.0", extras = ["cli"] }
humanize = "^4.9.0"
python-box = "^7.2.0"
inflection = "0.5.*"
loguru = "0.7.2"
pendulum = "^3.0.0"
pint = "0.24.*"
pycognito = "2024.5.1"
pydantic = "2.7.3"
python-box = "^7.2.0"
readchar = "^4.1.0"
typer = "^0.12.3"

[tool.poetry.group.dev.dependencies]
aioresponses = "0.7.6"
black = "^24.4.2"
build = "1.2.1"
bump-my-version = "^0.23.0"
httpx = "^0.27.0"
mypy = "1.10.0"
pre-commit = "3.7.1"
pytest = "8.2.2"
pytest-loguru = "0.4.0"
pytest-asyncio = "0.23.7"
aioresponses = "0.7.6"
tox = "4.15.1"
pytest-cov = "5.0.0"
build = "1.2.1"
pytest-loguru = "0.4.0"
ruff = "0.4.9"
pre-commit = "3.7.1"
mypy = "1.10.0"
tox = "4.15.1"
twine = "5.1.0"
black = "^24.4.2"
httpx = "^0.27.0"
bump-my-version = "^0.23.0"


[tool.poetry.group.docs.dependencies]
griffe-fieldz = "0.1.2"
mike = "2.1.1"
mkdocs = "1.6.0"
mkdocs-autorefs = "1.0.1"
mkdocs-gen-files = "0.5.0"
Expand All @@ -64,10 +65,8 @@ mkdocs-material-extensions = "1.3.1"
mkdocs-section-index = "0.3.9"
mkdocstrings = "0.25.1"
mkdocstrings-python = "1.10.3"
griffe-fieldz = "0.1.2"
mike = "2.1.1"
setuptools = "^70.0.0"
pkginfo = "^1.11.1"
setuptools = "^70.0.0"
virtualenv = "^20.26.2"


Expand Down
7 changes: 5 additions & 2 deletions src/otf_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ def __init__(self, username: str | None = None, password: str | None = None, tok
self.home_studio: StudioDetail

# Handle shutdown
signal.signal(signal.SIGINT, self.shutdown)
signal.signal(signal.SIGTERM, self.shutdown)
try:
signal.signal(signal.SIGINT, self.shutdown)
signal.signal(signal.SIGTERM, self.shutdown)
except Exception:
pass

if username and password:
self.user = User.login(username, password)
Expand Down

0 comments on commit b55df47

Please sign in to comment.