-
-
Notifications
You must be signed in to change notification settings - Fork 483
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
25 lines (25 loc) · 1013 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
25 lines (25 loc) · 1013 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.2
hooks:
- id: ruff-format
exclude: ^(site-packages/|pyrevitlib/rpw/|dev/modules/)
- repo: local
hooks:
- id: dotnet-format
name: dotnet format (C#)
entry: python dev/scripts/format_staged_csharp.py
language: system
files: \.cs$
exclude: ^dev/modules/
- id: ipy2-no-kwargs-trailing-comma
name: Normalize IPY2-incompatible **kwargs, (IronPython 2.7)
description: |
IronPython 2.7.12 -- the default pyRevit runtime -- raises
SyntaxError: unexpected token ',' on `**kwargs,` in multi-line
signatures or calls (pre-PEP-448 grammar). ruff format emits
this pattern under any supported target-version. This hook removes
only that incompatible comma after Ruff formats each file.
entry: python dev/scripts/check_ipy2_compat.py --fix
language: system
files: ^pyrevitlib/.*\.py$