Skip to content

Commit

Permalink
FEATURE: Add pre-commit hooks for commit and push
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Oct 28, 2024
1 parent f8f9ee5 commit fe50873
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
args: [ --fix ]
language: system
types: [python]
stages: [commit]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
]
stages: [push]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

dev_requirements = [
'ruff',
'pre-commit',
'pytest',
'pytest-cov',
'coverage',
Expand Down

0 comments on commit fe50873

Please sign in to comment.