tmux-python / tmuxp

🖥️ Session manager for tmux, build on libtmux.
https://tmuxp.git-pull.com/
MIT License
4.04k stars 231 forks source link

Bump dev dependencies, including ruff 0.4.2, f-string tweaks #931

Closed tony closed 4 months ago

tony commented 4 months ago

Changes

Dev package updates, including ruff 0.4.2

chore: f-string updates

ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes --ignore T201 --ignore F401 --ignore PT014 --ignore RUF100 --ignore PGH004; ruff format .

Output:

Fixed 102 errors:
- conftest.py:
     1 × UP031 (printf-string-formatting)
     1 × UP032 (f-string)
- docs/_ext/aafig.py:
     3 × UP031 (printf-string-formatting)
     3 × UP032 (f-string)
- docs/conf.py:
     2 × UP031 (printf-string-formatting)
- src/tmuxp/cli/convert.py:
     1 × UP031 (printf-string-formatting)
     1 × UP032 (f-string)
- src/tmuxp/cli/debug_info.py:
    19 × UP031 (printf-string-formatting)
     8 × UP032 (f-string)
- src/tmuxp/cli/freeze.py:
     5 × UP031 (printf-string-formatting)
     4 × UP032 (f-string)
- src/tmuxp/cli/import_config.py:
     4 × UP031 (printf-string-formatting)
     4 × UP032 (f-string)
     1 × EM103 (dot-format-in-exception)
- src/tmuxp/cli/load.py:
     2 × UP031 (printf-string-formatting)
     1 × UP032 (f-string)
- src/tmuxp/cli/utils.py:
     3 × UP031 (printf-string-formatting)
     2 × UP032 (f-string)
- src/tmuxp/workspace/finders.py:
     2 × UP031 (printf-string-formatting)
     2 × UP032 (f-string)
- src/tmuxp/workspace/importers.py:
     1 × UP031 (printf-string-formatting)
- tests/workspace/test_config.py:
     8 × UP031 (printf-string-formatting)
     8 × UP032 (f-string)
- tests/workspace/test_finder.py:
     8 × UP031 (printf-string-formatting)
     8 × UP032 (f-string)

See also

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 70.21%. Comparing base (296276d) to head (005fe7c).

Files Patch % Lines
docs/_ext/aafig.py 0.00% 1 Missing :warning:
src/tmuxp/cli/freeze.py 66.66% 0 Missing and 1 partial :warning:
src/tmuxp/cli/import_config.py 75.00% 0 Missing and 1 partial :warning:
src/tmuxp/cli/load.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #931 +/- ## ========================================== + Coverage 70.19% 70.21% +0.01% ========================================== Files 26 26 Lines 1936 1937 +1 Branches 404 404 ========================================== + Hits 1359 1360 +1 Misses 454 454 Partials 123 123 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.