Skip to content

Commit

Permalink
Exclude 'qtgui_rc.py' from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed May 8, 2024
1 parent f53f34a commit e4f8292
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,47 @@ repos:
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: 'qtgui_rc.py'
- id: end-of-file-fixer
exclude: 'qtgui_rc.py'
- id: check-docstring-first
exclude: 'qtgui_rc.py'
- id: debug-statements
exclude: 'qtgui_rc.py'
- id: double-quote-string-fixer
exclude: 'qtgui_rc.py'
- id: check-toml
- id: check-yaml
- id: check-json
- id: requirements-txt-fixer
- id: fix-byte-order-marker
exclude: 'qtgui_rc.py'

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
exclude: '/qt_gui\.py$|tests/|generate_ver_file\.py$'
exclude: '/qt_gui\.py$|/qtgui_rc\.py$|tests/|generate_ver_file\.py$'
additional_dependencies: [types-cffi, types-Pillow, types-psutil, types-pyinstaller, types-PyYAML, types-requests, lxml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
hooks:
- id: ruff
exclude: '/qtgui_rc.py$|tests/'
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
exclude: tests
exclude: '/qtgui_rc.py$|tests/'

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
exclude: '/qtgui_rc.py$'
args: [--py39-plus]

- repo: https://github.com/econchick/interrogate
Expand All @@ -69,3 +76,4 @@ repos:
rev: 5.13.2
hooks:
- id: isort
exclude: '/qtgui_rc.py$'

0 comments on commit e4f8292

Please sign in to comment.