diff --git a/.github/dependbot.yml b/.github/dependbot.yml new file mode 100644 index 0000000..b9038ca --- /dev/null +++ b/.github/dependbot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "monthly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: monthly diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a41fd2b..170e955 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,8 +12,8 @@ jobs: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v2" - - uses: "actions/setup-python@v1" + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" with: python-version: 3.7 - name: "Install dependencies" diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 0690b4d..bc271a6 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -39,8 +39,8 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - uses: "actions/checkout@v2" - - uses: "actions/setup-python@v1" + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" with: python-version: "${{ matrix.python-version }}" - name: "Install dependencies" diff --git a/databases/backends/aiopg.py b/databases/backends/aiopg.py index 9ad12f6..60c741a 100644 --- a/databases/backends/aiopg.py +++ b/databases/backends/aiopg.py @@ -31,7 +31,7 @@ def __init__( self._database_url = DatabaseURL(database_url) self._options = options self._dialect = self._get_dialect() - self._pool = None + self._pool: typing.Union[aiopg.Pool, None] = None def _get_dialect(self) -> Dialect: dialect = PGDialect_psycopg2( diff --git a/requirements.txt b/requirements.txt index 0d1d5b7..3d98858 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,32 +1,31 @@ -e . # Async database drivers -asyncmy -aiomysql -aiopg -aiosqlite -asyncpg +asyncmy==0.2.5 +aiomysql==0.1.1 +aiopg==1.3.4 +aiosqlite==0.17.0 +asyncpg==0.26.0 # Sync database drivers for standard tooling around setup/teardown/migrations. -psycopg2-binary -pymysql +psycopg2-binary==2.9.3 +pymysql==1.0.2 # Testing -autoflake -black -codecov -isort -mypy -pytest -pytest-cov -starlette -requests +autoflake==1.4 +black==22.6.0 +isort==5.10.1 +mypy==0.971 +pytest==7.1.2 +pytest-cov==3.0.0 +starlette==0.20.4 +requests==2.28.1 # Documentation -mkdocs -mkdocs-material -mkautodoc +mkdocs==1.3.1 +mkdocs-material==8.3.9 +mkautodoc==0.1.0 # Packaging -twine -wheel +twine==4.0.1 +wheel==0.37.1