Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit e5a3047

Browse files
committed
fix: local hooks must run with system language
Otherwise, we have weird errors. Also, language version must be removed. @moduon MT-83
1 parent 5f40d4b commit e5a3047

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/.pre-commit-config.yaml.jinja

+8-11
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
- id: autoflake
4242
name: autoflake
4343
entry: poetry run autoflake
44-
language: python
44+
language: system
4545
types: [python]
4646
require_serial: true
4747
args:
@@ -55,29 +55,27 @@ repos:
5555
name: pyupgrade
5656
description: Automatically upgrade syntax for newer versions.
5757
entry: poetry run pyupgrade
58-
language: python
58+
language: system
5959
types: [python]
6060
- id: black
6161
name: black
6262
description: "Black: The uncompromising Python code formatter"
6363
entry: poetry run black
64-
language: python
64+
language: system
6565
minimum_pre_commit_version: 2.9.2
6666
require_serial: true
6767
types_or: [python, pyi]
6868
- id: blacken-docs
6969
name: blacken-docs
7070
description: Run `black` on python code blocks in documentation files
7171
entry: poetry run blacken-docs
72-
language: python
73-
language_version: python3
72+
language: system
7473
files: '\.(rst|md|markdown|py|tex)$'
7574
- id: isort
7675
name: isort
7776
entry: poetry run isort
7877
require_serial: true
79-
language: python
80-
language_version: python3
78+
language: system
8179
types_or: [cython, pyi, python]
8280
minimum_pre_commit_version: '2.9.2'
8381
args:
@@ -88,7 +86,7 @@ repos:
8886
name: flake8 except __init__.py
8987
description: '`flake8` is a command-line utility for enforcing style consistency across Python projects.'
9088
entry: poetry run flake8
91-
language: python
89+
language: system
9290
types: [python]
9391
require_serial: true
9492
exclude: /__init__\.py$
@@ -102,14 +100,13 @@ repos:
102100
name: pydocstyle
103101
description: pydocstyle is a static analysis tool for checking compliance with Python docstring conventions.
104102
entry: poetry run pydocstyle
105-
language: python
103+
language: system
106104
types: [python]
107105
- id: poetry-check
108106
name: poetry-check
109107
description: run poetry check to validate config
110108
entry: poetry check
111-
language: python
112-
language_version: python3
109+
language: system
113110
pass_filenames: false
114111
files: ^pyproject.toml$
115112
{%- else %}

0 commit comments

Comments
 (0)