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

Linting: Aggressive ruff pass (ruff v0.3.4) #33

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Conversation

tony
Copy link
Member

@tony tony commented Mar 24, 2024

ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format .

Fixed 14 errors:

  • docs/conf.py:
    1 × RET505 (superfluous-else-return)
  • src/doctest_docutils.py:
    2 × ANN204 (missing-return-type-special-method)
    1 × T201 (print)
    1 × RUF100 (unused-noqa)
    1 × RSE102 (unnecessary-paren-on-raise-exception)
    1 × PIE810 (multiple-starts-ends-with)
    1 × PLR6201 (literal-membership)
  • src/linkify_issues.py:
    1 × RET504 (unnecessary-assign)
  • src/pytest_doctest_docutils.py:
    1 × PLR6201 (literal-membership)
  • tests/conftest.py:
    1 × PT003 (pytest-extraneous-scope-function)
    1 × PT022 (pytest-useless-yield-fixture

@tony tony closed this Mar 24, 2024
@tony tony reopened this Mar 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2024

Codecov Report

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

Project coverage is 58.96%. Comparing base (ddc0dab) to head (097a7ee).

Files Patch % Lines
src/doctest_docutils.py 20.00% 4 Missing ⚠️
docs/conf.py 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   59.02%   58.96%   -0.07%     
==========================================
  Files          10       10              
  Lines         659      658       -1     
==========================================
- Hits          389      388       -1     
  Misses        270      270              

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

ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format .

Fixed 14 errors:
- docs/conf.py:
    1 × RET505 (superfluous-else-return)
- src/doctest_docutils.py:
    2 × ANN204 (missing-return-type-special-method)
    1 × T201 (print)
    1 × RUF100 (unused-noqa)
    1 × RSE102 (unnecessary-paren-on-raise-exception)
    1 × PIE810 (multiple-starts-ends-with)
    1 × PLR6201 (literal-membership)
- src/linkify_issues.py:
    1 × RET504 (unnecessary-assign)
- src/pytest_doctest_docutils.py:
    1 × PLR6201 (literal-membership)
- tests/conftest.py:
    1 × PT003 (pytest-extraneous-scope-function)
    1 × PT022 (pytest-useless-yield-fixture)
@tony tony merged commit 85ae469 into master Mar 24, 2024
15 checks passed
@tony tony deleted the ruff-all-v0.3.4-pass branch March 24, 2024 17:09
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

2 participants