Skip to content

Conversation

@m1yag1
Copy link
Member

@m1yag1 m1yag1 commented Sep 12, 2025

Summary

This PR aims to reduce the number of deprecation warnings when running the test suite.

Changes

  • Upgrade Sentry SDK from 1.0.0 to 2.37.1 to resolve deprecated datetime functions
  • Change aiohttp HTTPException from return to raise pattern
  • Fix Docker PostgreSQL connection configuration for tests (this was primarily for my setup as I had a port conflict w/ pylance on vscode)
  • Document SQLAlchemy limitation due to asyncpgsa compatibility

Only two left!

.tox/py312-test/lib/python3.12/site-packages/sqlalchemy/sql/sqltypes.py:1902
  /__w/website/website/.tox/py312-test/lib/python3.12/site-packages/sqlalchemy/sql/sqltypes.py:1902: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    epoch = dt.datetime.utcfromtimestamp(0)

.tox/py312-test/lib/python3.12/site-packages/slack/sansio.py:5
  /__w/website/website/.tox/py312-test/lib/python3.12/site-packages/slack/sansio.py:5: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    import cgi

- Upgraded Sentry SDK from 1.0.0 to 2.37.1 to resolve deprecated
  datetime functions
- Changed aiohttp HTTPException from return to raise pattern
- Fixed Docker PostgreSQL connection configuration for tests
- Documented SQLAlchemy limitation due to asyncpgsa compatibility
- Removed redundant .flake8 file in favor of Ruff configuration
@m1yag1 m1yag1 merged commit cab9e2b into main Sep 12, 2025
5 checks passed
@m1yag1 m1yag1 deleted the fix/deprecation-warnings branch September 12, 2025 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant