Skip to content

Indentation + ruff whitespace fixes#10285

Merged
AUTOMATIC1111 merged 3 commits into
AUTOMATIC1111:devfrom
akx:ruff-spacing
May 11, 2023
Merged

Indentation + ruff whitespace fixes#10285
AUTOMATIC1111 merged 3 commits into
AUTOMATIC1111:devfrom
akx:ruff-spacing

Conversation

@akx

@akx akx commented May 11, 2023

Copy link
Copy Markdown
Collaborator

Describe what this pull request is trying to achieve.

A couple of files were indented with 2 spaces, ick.
Also, enable + autofix Ruff's W category to eradicate stray spaces.

This PR looks big, but it's just reindentation and autofixes.

Environment this was tested in

  • OS: Windows
  • Browser: irrelevant
  • Graphics card: irrelevant

@akx akx requested a review from AUTOMATIC1111 as a code owner May 11, 2023 15:32
@AUTOMATIC1111

Copy link
Copy Markdown
Owner

what about slashes in comments replaced with double slashes

@akx

akx commented May 11, 2023

Copy link
Copy Markdown
Collaborator Author

what about slashes in comments replaced with double slashes

That's W605, invalid escape sequence. Python doesn't mind \(, but it's also not a correct escape sequence.

@AUTOMATIC1111

Copy link
Copy Markdown
Owner

But they are replaced in comments, not in strings.

@akx

akx commented May 11, 2023

Copy link
Copy Markdown
Collaborator Author

But they are replaced in comments, not in strings.

in uni_pc and prompt_parser? Those look like docstrings to me, so strings too.

@akx

akx commented May 11, 2023

Copy link
Copy Markdown
Collaborator Author

Anyway, ignored W605 out of this PR 👍

@AUTOMATIC1111 AUTOMATIC1111 merged commit abe32ce into AUTOMATIC1111:dev May 11, 2023
@akx akx deleted the ruff-spacing branch May 30, 2023 15:03
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