Skip to content

Commit

Permalink
Add rye format and rye lint to pre-commit cfg
Browse files Browse the repository at this point in the history
> Set up a project.
> Set up a descent linting/formatting tools.
> Configure the CI.
> Add modern pre-commit git hooks managers.
> Not use them for running formatters and linters.

This patch adds the hooks for checking formatting and linting of the
python code to the pre-commit configuration.
  • Loading branch information
georgiy-belyanin committed Sep 8, 2024
1 parent 79445de commit f093037
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: check-format
name: check-format
entry: rye fmt --check
language: system
types: [python]
- id: lint
name: lint
entry: rye lint
language: system
types: [python]

0 comments on commit f093037

Please sign in to comment.