You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: Switch from flake8, isort and black to ruff (#554)
Structural changes:
* Add ruff dependency, configuration and pre-commit hook
* Add ruff in the typing check and rename it code-quality
* Remove check-todos (now done by ruff in CI)
Code changes to adapt to ruff:
* Use strict=True when zipping
* Use | None instead of Optional
* Use | in isinstance instead of tuple
* Rename unused for-loop counters to _
* Stop using .format in strings
* Stop importing Iterable and Callable from typing
* Group "as" imports
* Stop opening files explicitly with "r" mode
---------
Co-authored-by: Valérian Rey <valerian.rey@gmail.com>
- id: flake8 # Check style and syntax. Does not modify code, issues have to be solved manually.
16
-
args: [
17
-
'--ignore=E501,E203,W503,E402', # Ignore line length problems, space after colon problems, line break occurring before a binary operator problems, module level import not at top of file problems.
0 commit comments