Skip to content

Add ruff formatter and linter.#216

Merged
Tinche merged 9 commits intoTinche:mainfrom
stankudrow:add-ruff
May 26, 2025
Merged

Add ruff formatter and linter.#216
Tinche merged 9 commits intoTinche:mainfrom
stankudrow:add-ruff

Conversation

@stankudrow
Copy link
Contributor

@stankudrow stankudrow commented May 5, 2025

Ruff is both formatter and linter. It can replace black and flake8 tools.

A lot of ruff rules are selected, but some are commented for future chores.

The code was formatted and linted with ruff, yet some rules that required manual intervention:

  • EM
  • RET

Extra changes:

  • Makefile is updated -> more rules without more complexity
  • .gitignore -> just a few new lines

Resolves the discussion #215 .

Good to go before #213 and maybe any other open PR.

@stankudrow stankudrow requested a review from Tinche May 11, 2025 20:02
@stankudrow
Copy link
Contributor Author

@Tinche , hello.

The PR is ready for the next round.

Copy link
Owner

@Tinche Tinche left a comment

Choose a reason for hiding this comment

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

LGTM. I haven't looked too closely at the choice of rules, trusting you with the selection ;)

@Tinche Tinche merged commit 8727c96 into Tinche:main May 26, 2025
14 checks passed
@stankudrow
Copy link
Contributor Author

LGTM. I haven't looked too closely at the choice of rules, trusting you with the selection ;)

Thank you, I think this config will do.

@stankudrow stankudrow deleted the add-ruff branch May 26, 2025 09:21
stankudrow added a commit to stankudrow/aiofiles that referenced this pull request May 26, 2025
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