File tree Expand file tree Collapse file tree 4 files changed +35
-160
lines changed
Expand file tree Collapse file tree 4 files changed +35
-160
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ DEFAULT_GOAL := ci
33.PHONY : ci
44ci : check format-check test
55
6- .PHONY : venv
7- venv :
6+ .venv : uv.lock pyproject.toml
7+ rm -rf . venv
88 uv sync
99
10+ .PHONY : venv
11+ venv : .venv
12+
1013.PHONY : clean
1114clean :
1215 rm -rf .venv
@@ -28,4 +31,4 @@ format-check:
2831
2932.PHONY : check
3033check : venv
31- uv run mypy src/flareio tests
34+ uv run ty check
Original file line number Diff line number Diff line change @@ -37,16 +37,17 @@ build-backend = "uv_build"
3737[dependency-groups ]
3838dev = [
3939 " pytest>=8.3.2" ,
40- " mypy>=1.11.1" ,
4140 " ruff>=0.15.0" ,
4241 " requests-mock>=1.12.1" ,
4342 " types-requests>=2.32.0.20240712" ,
4443 " pip>=26" ,
44+ " ty>=0.0.15" ,
4545]
4646
4747[tool .ruff .lint ]
4848extend-select = [
4949 " I" ,
50+ " ANN" ,
5051 " C411" ,
5152 " C413" ,
5253 " C414" ,
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def _create_retry() -> Retry:
100100
101101 # Support for urllib3 < 2.X
102102 if hasattr (retry , "backoff_max" ):
103- retry . backoff_max = 15
103+ setattr ( retry , " backoff_max" , 15 )
104104
105105 return retry
106106
You can’t perform that action at this time.
0 commit comments