mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 09:27:23 -05:00
There's a few advantages of using ruff over these tools: * It's way faster * It's easier to configure * It includes support for a bunch of other linters (for example bugbear) right out of the box, which catches some things and makes our code more consistent. Ruff works great with black, which I'd recommend we continue using. Fixed a few minor issues that the new linter combo picked up.
11 lines
232 B
YAML
11 lines
232 B
YAML
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.1.0
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: "v0.0.287"
|
|
hooks:
|
|
- id: ruff
|