databricks-cli/libs/python
Denis Bilenko 0b80784df7
Enable testifylint and fix the issues (#2065)
## Changes
- Enable new linter: testifylint.
- Apply fixes with --fix.
- Fix remaining issues (mostly with aider).

There were 2 cases we --fix did the wrong thing - this seems to a be a
bug in linter: https://github.com/Antonboom/testifylint/issues/210

Nonetheless, I kept that check enabled, it seems useful, just need to be
fixed manually after autofix.

## Tests
Existing tests
2025-01-02 12:03:41 +01:00
..
pythontest Fix finding Python within virtualenv on Windows (#2034) 2024-12-20 07:45:32 +00:00
testdata Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
detect.go Fix finding Python within virtualenv on Windows (#2034) 2024-12-20 07:45:32 +00:00
detect_test.go Fix finding Python within virtualenv on Windows (#2034) 2024-12-20 07:45:32 +00:00
detect_unix_test.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
detect_win_test.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
interpreters.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
interpreters_unix_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
interpreters_win_test.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
utils.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
utils_test.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
venv.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
venv_test.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00