Change #263923
| Category | None |
| Changed by | Dan Fandrich <dan@coneharvesters.com> |
| Changed at | Tue 07 Apr 2026 17:26:55 |
| Repository | https://api.github.com/repos/curl/curl |
| Project | curl/curl |
| Branch | dfandrich/pywarn |
| Revision | 1e0c297cbc41c5ff88c23640e2959a75cfd1e3d2 |
Comments
tests: enable more ruff checks - Checks for missing explicit `return` statements at the end of functions that can return non-`None` values. - Checks for classes that inherit from `object`. - Checks for useless expressions. - Within an `except*` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling - Checks for variable assignments that immediately precede a `return` of the assigned variable. - Checks for `else` statements with a `return` statement in the preceding `if` block. - Checks for unnecessary parentheses on raised exceptions. Closes: #21258
Changed files
- scripts/pythonlint.sh
- tests/dictserver.py
- tests/http/conftest.py
- tests/http/scorecard.py
- tests/http/test_17_ssl_use.py
- tests/http/test_20_websockets.py
- tests/http/test_30_vsftpd.py
- tests/http/test_31_vsftpds.py
- tests/http/test_32_ftps_vsftpd.py
- tests/http/testenv/caddy.py
- tests/http/testenv/certs.py
- tests/http/testenv/client.py
- tests/http/testenv/curl.py
- tests/http/testenv/dante.py
- tests/http/testenv/env.py
- tests/http/testenv/httpd.py
- tests/http/testenv/nghttpx.py
- tests/http/testenv/sshd.py
- tests/http/testenv/vsftpd.py
- tests/negtelnetserver.py
- tests/smbserver.py
- tests/util.py