-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
146 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,37 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
black: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- run: pip install riot==0.19.0 | ||
- run: riot -v run -s black -- --check . | ||
mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- run: pip install riot==0.19.0 | ||
- run: riot -v run mypy | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- run: pip install riot==0.19.0 | ||
- run: riot -v run flake8 | ||
- run: pip install uv | ||
- run: uv venv | ||
- run: uv pip install --requirement pyproject.toml --all-extras | ||
- run: .venv/bin/ruff format --check . | ||
- run: .venv/bin/ruff check . | ||
- run: .venv/bin/mypy asyncio_connection_pool | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: install riot | ||
run: pip install riot==0.19.0 | ||
- name: run tests | ||
run: riot -v run --python=${{ matrix.python-version }} test -- --cov=asyncio_connection_pool --cov-branch --cov-config=.coveragerc | ||
- name: install coverage | ||
run: pip install coverage | ||
- name: upload coverage | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel: true | ||
flag-name: run ${{ join(matrix.*, ' - ') }} | ||
finish-coveralls: | ||
needs: test | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel-finished: true | ||
allow-empty: true | ||
- run: pip install uv | ||
- run: uv venv | ||
- run: uv pip install --requirement pyproject.toml --all-extras | ||
- run: .venv/bin/pytest --cov=asyncio_connection_pool --cov-branch --cov-config=.coveragerc | ||
- run: .venv/bin/codecov | ||
if: matrix.python-version == '3.11' | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "asyncio-connection-pool" | ||
dynamic = ["version"] | ||
description = "A high-throughput, optionally-burstable pool free of explicit locking" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
authors = [{ name = "Patrick Gingras", email = "[email protected]" }] | ||
license = { text = "BSD-3-Clause" } | ||
dependencies = [] | ||
|
||
[project.optional-dependencies] | ||
datadog = ["ddtrace", "datadog"] | ||
aioredis = ["redis>=4.2"] | ||
dev = ["mypy~=1.9", "pytest~=8.1", "pytest-asyncio~=0.23", "ruff~=0.4"] | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"B", | ||
"COM", | ||
"E", | ||
"EM", | ||
"F", | ||
"I", | ||
"I", | ||
"N", | ||
"PT", | ||
"RSE", | ||
"RUF", | ||
"SIM", | ||
"UP", | ||
"W", | ||
] | ||
ignore = ["COM812"] | ||
preview = true | ||
|
||
[tool.ruff.format] | ||
preview = true | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
check_untyped_defs = true | ||
disallow_any_unimported = true | ||
disallow_any_decorated = true | ||
disallow_any_generics = true | ||
disallow_subclassing_any = true | ||
disallow_incomplete_defs = false | ||
disallow_untyped_decorators = true | ||
no_implicit_optional = true | ||
strict_optional = true | ||
warn_redundant_casts = true | ||
warn_unused_ignores = true | ||
warn_return_any = true | ||
warn_unreachable = true | ||
implicit_reexport = false | ||
strict_equality = true | ||
pretty = true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.