Skip to content

Add ruff formatter and linter.#216

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

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

Conversation

@stankudrow

@stankudrow stankudrow commented May 5, 2025

Copy link
Copy Markdown
Contributor

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.

Comment thread .gitignore
Comment thread .gitignore
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread src/aiofiles/__init__.py
Comment thread src/aiofiles/tempfile/__init__.py
Comment thread src/aiofiles/tempfile/__init__.py
Comment thread tests/test_tempfile.py
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
@stankudrow stankudrow requested a review from Tinche May 11, 2025 20:02
@stankudrow

Copy link
Copy Markdown
Contributor Author

@Tinche , hello.

The PR is ready for the next round.

@Tinche Tinche left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
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