Skip to content

replace black with ruff#1968

Merged
thealligatorking merged 3 commits intoopentensor:stagingfrom
backend-developers-ltd:ruff
Jun 3, 2024
Merged

replace black with ruff#1968
thealligatorking merged 3 commits intoopentensor:stagingfrom
backend-developers-ltd:ruff

Conversation

@mjurbanski-reef
Copy link
Contributor

@mjurbanski-reef mjurbanski-reef commented Jun 1, 2024

ruff implements black code style, but has two advantages:

  • it is much faster
  • and MUCH more important: it also is a linter with autofixer - i.e. instead of bothering you with stuff like instead of obj == None use obj is None - it will just automatically fix it for you speeding up development .

This PR only replaced the formatter, just to test the waters as ruff linter will for sure be bigger with all its autofixers :)
If you want to know more about ruff see rules it implements and which have autofixes available - my recommendation would be to stick with ["E", "F", "I", "UP", "TCH005"] for starters.

@thealligatorking thealligatorking merged commit 28b9039 into opentensor:staging Jun 3, 2024
This was referenced Jun 4, 2024
@thealligatorking thealligatorking mentioned this pull request Jun 12, 2024
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