1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
bd405b3d5a
Fixed type on expire after
All checks were successful
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
Python Ruff Code Quality / ruff (push) Successful in 23s
Run Python tests (through Pytest) / Test (push) Successful in 25s
2024-10-23 20:58:39 +02:00
47fec623f5 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager
2024-10-20 20:07:57 +02:00
0cb4f67576 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager
2024-10-20 19:46:00 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -19,10 +19,13 @@ jobs:
uses: actions/checkout@v3
- name: Installing Python Dependencies
if: success()
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest pytest-cov --break-system-packages
- name: Installing Python Test Dependencies
if: success() && hashFiles('requirements_test.txt') != ''
run: python3 -m pip install --upgrade -r requirements_test.txt --break-system-packages
- name: Installing package
if: success()
run: python3 -m pip install .[test] --break-system-packages
- name: Test Python Code
if: success()
run: python3 -m pytest test --cov=requests_util --cov-report html:htmlcov --cov-fail-under=0

View File

@ -71,7 +71,7 @@ def initialize_session() -> requests.Session:
def setup_limiter(
session: requests.Session,
url_prefix: str,
expire_after: datetime.datetime | None = None,
expire_after: datetime.timedelta | None = None,
**limiter_args,
) -> requests.Session:
"""Initializes limiter on session for the given domain with the given