Skip to content

useless-semicolon: ruff check --select=E703 --fix #769

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

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jun 29, 2025

% ruff check --select=E703 --fix

Found 18 errors (18 fixed, 0 remaining).

% ruff rule E703

useless-semicolon (E703)

Derived from the pycodestyle linter.

Fix is always available.

What it does

Checks for statements that end with an unnecessary semicolon.

Why is this bad?

A trailing semicolon is unnecessary and should be removed.

Example

do_four();  # useless semicolon

Use instead:

do_four()

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@julianoes julianoes merged commit b6abbbc into mavlink:main Jun 29, 2025
8 checks passed
@cclauss cclauss deleted the ruff_check_--select=E703_--fix branch June 29, 2025 21:11
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.

2 participants