Commit a056499
style: Fixes if-stmt-min-max (PLR1730) (OSGeo#3950)
Concerns Pylint rules "consider-using-min-builtin / R1730" and "consider-using-max-builtin / R1731"
Using `ruff check --output-format=concise --select PLR1730 --preview --fix`.1 parent e6b0047 commit a056499
File tree
24 files changed
+76
-152
lines changed- gui/wxpython
- core
- dbmgr
- gcp
- gmodeler
- gui_core
- image2target
- location_wizard
- modules
- nviz
- photo2image
- vnet
- python/grass
- benchmark
- imaging
- jupyter
- temporal
- scripts
- d.correlate
- d.rast.edit
- d.rast.leg
- r.tileset
- temporal/t.rast.what
24 files changed
+76
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
| |||
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
305 | | - | |
| 303 | + | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
| 363 | + | |
| 364 | + | |
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2236 | 2236 | | |
2237 | 2237 | | |
2238 | 2238 | | |
2239 | | - | |
2240 | | - | |
2241 | | - | |
2242 | | - | |
2243 | | - | |
2244 | | - | |
2245 | | - | |
2246 | | - | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
2247 | 2243 | | |
2248 | 2244 | | |
2249 | 2245 | | |
| |||
2292 | 2288 | | |
2293 | 2289 | | |
2294 | 2290 | | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
2298 | | - | |
| 2291 | + | |
| 2292 | + | |
2299 | 2293 | | |
2300 | 2294 | | |
2301 | 2295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
1000 | 996 | | |
1001 | 997 | | |
1002 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
| 483 | + | |
| 484 | + | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2174 | 2174 | | |
2175 | 2175 | | |
2176 | 2176 | | |
2177 | | - | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
2185 | 2181 | | |
2186 | 2182 | | |
2187 | 2183 | | |
| |||
2230 | 2226 | | |
2231 | 2227 | | |
2232 | 2228 | | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
2236 | | - | |
| 2229 | + | |
| 2230 | + | |
2237 | 2231 | | |
2238 | 2232 | | |
2239 | 2233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
707 | | - | |
| 706 | + | |
708 | 707 | | |
709 | | - | |
710 | | - | |
| 708 | + | |
711 | 709 | | |
712 | 710 | | |
713 | 711 | | |
| |||
0 commit comments