Skip to content

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

Merged
julianoes merged 1 commit intomavlink:mainfrom
cclauss:ruff_check_--select=E703_--fix
Jun 29, 2025
Merged

useless-semicolon: ruff check --select=E703 --fix#769
julianoes merged 1 commit intomavlink:mainfrom
cclauss:ruff_check_--select=E703_--fix

Conversation

@cclauss
Copy link
Copy Markdown
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
Copy Markdown
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