Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Apr 27, 2024
Merged

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

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
18 checks passed
@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.

None yet

1 participant