sloukit / pydew-valley-uzh

Mod of Pydew Valley for an experimental study in Psychology
Creative Commons Zero v1.0 Universal
20 stars 30 forks source link

enha(ci,dependencies): Use `ruff` instead of `black` and `flake8` for formatting/linting #107

Closed Mega-JC closed 1 month ago

Mega-JC commented 1 month ago

Summary

This PR supersedes parts of PR #100 by replacing black, isort and flake8 with ruff.

ruff is faster, easier to configure and implements everything they offer that we would ever need.

To format the entire codebase, do ruff format .. See the Documentation. To perform linting, do ruff check .. See the Documentation. To sort imports, do ruff check --select I --fix

Checklist

Labels

https://github.com/sloukit/pydew-valley-uzh/labels/type%3A%20enhancement, https://github.com/sloukit/pydew-valley-uzh/labels/area%3A%20ci, https://github.com/sloukit/pydew-valley-uzh/labels/area%3A%20code%20quality