Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ DEFAULT_GOAL := ci
.PHONY: ci
ci: check format-check test

.PHONY: venv
venv:
.venv: uv.lock pyproject.toml
rm -rf .venv
uv sync

.PHONY: venv
venv: .venv

.PHONY: clean
clean:
rm -rf .venv
Expand All @@ -28,4 +31,4 @@ format-check:

.PHONY: check
check: venv
uv run mypy src/flareio tests
uv run ty check
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ build-backend = "uv_build"
[dependency-groups]
dev = [
"pytest>=8.3.2",
"mypy>=1.11.1",
"ruff>=0.15.0",
"requests-mock>=1.12.1",
"types-requests>=2.32.0.20240712",
"pip>=26",
"ty>=0.0.15",
]

[tool.ruff.lint]
extend-select = [
"I",
"ANN",
"C411",
"C413",
"C414",
Expand Down
2 changes: 1 addition & 1 deletion src/flareio/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _create_retry() -> Retry:

# Support for urllib3 < 2.X
if hasattr(retry, "backoff_max"):
retry.backoff_max = 15
setattr(retry, "backoff_max", 15)

return retry

Expand Down
Loading