Skip to content

Conversation

tony
Copy link
Member

@tony tony commented Apr 27, 2024

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

tony added 3 commits April 27, 2024 04:29
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes --ignore T201 --ignore F401 --ignore PT014 --ignore RUF100 --ignore PGH004; ruff format .

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)
src/tmuxp/workspace/finders.py:194:89: E501 Line too long (97 > 88)
src/tmuxp/workspace/finders.py:210:89: E501 Line too long (103 > 88)
Copy link

codecov bot commented Apr 27, 2024

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 ⚠️
src/tmuxp/cli/freeze.py 66.66% 0 Missing and 1 partial ⚠️
src/tmuxp/cli/import_config.py 75.00% 0 Missing and 1 partial ⚠️
src/tmuxp/cli/load.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tony tony changed the title Ruff 0.4.2 Bump dev dependencies, including ruff 0.4.2, f-string tweaks Apr 27, 2024
@tony tony merged commit 83daaaf into master Apr 27, 2024
@tony tony deleted the ruff-0.4.2 branch April 27, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant