Skip to content

Commit

Permalink
Refactor pre-commit configuration and update setup.py for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
AliYmn committed Nov 7, 2024
1 parent ccfe986 commit 33a36ed
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 138 deletions.
63 changes: 17 additions & 46 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.1
hooks:
- id: pyupgrade
language_version: python3.8

- repo: https://github.com/adamchainz/django-upgrade
rev: '1.7.0'
hooks:
- id: django-upgrade
args: [ --target-version, "3.1" ]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/python/black
rev: '22.6.0'
hooks:
- id: black
exclude: ^.*\b(migrations)\b.*$
language_version: python3.8
args: [
--skip-string-normalization,
-l 120,
]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
args:
- --unsafe
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-case-conflict
- id: trailing-whitespace
- id: check-symlinks
- id: flake8

- repo: https://github.com/PyCQA/pylint
rev: v2.14.5
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.7.2
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
exclude: ^.*\b(migrations)\b.*$
types: [ python ]
- id: ruff
args:
- --errors-only
- --rcfile=.pylintrc
- --load-plugins=pylint_django
- --fix
- id: ruff-format

- repo: https://github.com/AliYmn/conventional-commits-check
rev: v2.0.5
hooks:
- id: conventional-commits-check
stages: [commit-msg]
Loading

0 comments on commit 33a36ed

Please sign in to comment.