Skip to content

Commit 39a31c0

Browse files
sgonorovas-suvorovWovchena
authored
Fix pre-commit Darker deps and pyi ignoring (openvinotoolkit#3111)
- Added tomli to dependencies of darker in order to support Python 3.10 - Excluded pyi files from formatting in order not to break CMake stubgen pipelines --------- Co-authored-by: Alexander Suvorov <alexander.suvorov@intel.com> Co-authored-by: Vladimir Zlobin <vladimir.zlobin@intel.com>
1 parent 58c9af8 commit 39a31c0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'category: GHA':
22
- '.github/**/*'
3+
- '.pre-commit-config.yaml'
4+
- 'pyproject.toml'
35

46
'category: tests dependencies':
57
- 'tests/python_tests/requirements.txt'

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- master
1010

11+
permissions: read-all
12+
1113
env:
1214
OV_BRANCH: master
1315

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude: '\.pyi$'
12
repos:
23
- repo: meta
34
hooks:
@@ -26,3 +27,4 @@ repos:
2627
args: ["--formatter=ruff"]
2728
additional_dependencies:
2829
- ruff==0.14.4
30+
- tomli==2.3.0

0 commit comments

Comments
 (0)