Change #264008
| Category | curl |
| Changed by | Dan Fandrich <dan@coneharvesters.com> |
| Changed at | Wed 08 Apr 2026 19:28:05 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 4c1b6f549404826a75cfb3326cc0352cdc93b27e |
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