Skip to content

Commit

Permalink
update precommit config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Mar 12, 2024
1 parent 8e89289 commit 5ec993a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
20 changes: 10 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --all-extras --output-file=requirements.txt --resolver=backtracking pyproject.toml
# pip-compile --all-extras --output-file=requirements.txt pyproject.toml
#
bcrypt==4.1.2
# via paramiko
Expand All @@ -12,31 +12,31 @@ cffi==1.16.0
# pynacl
cfgv==3.4.0
# via pre-commit
coverage[toml]==7.4.1
coverage[toml]==7.4.3
# via pytest-cov
cryptography==42.0.2
cryptography==42.0.5
# via paramiko
distlib==0.3.8
# via virtualenv
filelock==3.13.1
# via virtualenv
greenlet==3.0.3
# via sqlalchemy
identify==2.5.34
identify==2.5.35
# via pre-commit
iniconfig==2.0.0
# via pytest
nodeenv==1.8.0
# via pre-commit
packaging==23.2
packaging==24.0
# via pytest
paramiko==3.4.0
# via sshtunnel
platformdirs==4.2.0
# via virtualenv
pluggy==1.4.0
# via pytest
pre-commit==3.6.1
pre-commit==3.6.2
# via hdx-python-database (pyproject.toml)
psycopg[binary]==3.1.18
# via hdx-python-database (pyproject.toml)
Expand All @@ -46,23 +46,23 @@ pycparser==2.21
# via cffi
pynacl==1.5.0
# via paramiko
pytest==8.0.0
pytest==8.1.1
# via
# hdx-python-database (pyproject.toml)
# pytest-cov
pytest-cov==4.1.0
# via hdx-python-database (pyproject.toml)
pyyaml==6.0.1
# via pre-commit
sqlalchemy==2.0.27
sqlalchemy==2.0.28
# via hdx-python-database (pyproject.toml)
sshtunnel==0.4.0
# via hdx-python-database (pyproject.toml)
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# psycopg
# sqlalchemy
virtualenv==20.25.0
virtualenv==20.25.1
# via pre-commit

# The following packages are considered to be unsafe in a requirements file:
Expand Down
1 change: 1 addition & 0 deletions src/hdx/database/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Database utilities"""

import logging
from typing import Any, Optional, Type, Union

Expand Down
1 change: 1 addition & 0 deletions src/hdx/database/no_timezone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for database datetime columns without timezone"""

from datetime import datetime, timezone
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/hdx/database/postgresql.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PostgreSQL specific utilities"""

import logging
import time

Expand Down
1 change: 1 addition & 0 deletions src/hdx/database/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Copied from:
https://github.com/sqlalchemy/sqlalchemy/wiki/Views#sqlalchemy-14-20-version
"""

from typing import Dict, List

import sqlalchemy as sa
Expand Down
4 changes: 2 additions & 2 deletions tests/hdx/database/dbtestdate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""SQLAlchemy class representing DBTestDate row. Holds test data for dates.
"""
"""SQLAlchemy class representing DBTestDate row. Holds test data for dates."""

from datetime import datetime

from sqlalchemy import select
Expand Down
1 change: 1 addition & 0 deletions tests/hdx/database/test_database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Database Utility Tests"""

from collections import namedtuple
from copy import deepcopy
from datetime import datetime, timezone
Expand Down

0 comments on commit 5ec993a

Please sign in to comment.