forked from zauberzeug/nicegui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (49 loc) · 1.57 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (49 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default_language_version:
python: python3.9
default_install_hook_types: [pre-commit, pre-push]
default_stages: [pre-commit]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.5
hooks:
- id: ruff-check
args: [--fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: &exclusions |
(?x)^(
nicegui/static/fonts/.*|
nicegui/static/fonts\.css|
nicegui/static/lang/.*|
nicegui/static/quasar\..*|
nicegui/static/socket\..*|
nicegui/static/tailwindcss\..*|
nicegui/static/vue\..*|
website/static/fuse\.js\@.*|
examples/fullcalendar/lib/.*|
.*\.js\.map
)$
- id: end-of-file-fixer
exclude: *exclusions
- id: double-quote-string-fixer
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
# most are excluded based on config in pyproject.toml
# but codespell fails to pick up some when ran from pre-commit, so
# annotated here explicitly, and above *exclusions aren't sufficient
exclude: |
(?x)^(
.*/dist/.*|
.*/package-lock.json|
nicegui/static/vue\..*|
nicegui/static/quasar\..*|
nicegui/static/sass\..*|
nicegui/translations\.py|
website/static/fuse\.js\@.*|
)$
additional_dependencies:
- tomli; python_version<'3.11'