Skip to content

Commit

Permalink
Merge pull request #478 from Jahn16/feat/ruff-format
Browse files Browse the repository at this point in the history
Feat/ruff format
  • Loading branch information
domenkozar authored Aug 5, 2024
2 parents f451c19 + 2d36652 commit 650538d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ clang-format supports.
- [poetry](https://python-poetry.org/docs/pre-commit-hooks)
- [pyupgrade](https://github.com/asottile/pyupgrade)
- [ruff](https://github.com/charliermarsh/ruff)
- [ruff-format](https://github.com/charliermarsh/ruff)
- [sort-requirements-txt](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/requirements_txt_fixer.py)

### PHP
Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
entry = "${hooks.ruff.package}/bin/ruff check --fix";
types = [ "python" ];
};
ruff-format =
{
name = "ruff";
description = "An extremely fast Python code formatter, written in Rust.";
package = tools.ruff;
entry = "${hooks.ruff.package}/bin/ruff format";
types = [ "python" ];
};
rustfmt =
let
inherit (hooks.rustfmt) packageOverrides;
Expand Down

0 comments on commit 650538d

Please sign in to comment.