Skip to content

Commit 26ce936

Browse files
committed
Fixes and add python formater
1 parent f5f9059 commit 26ce936

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
pull_request:
55
jobs:
66
lint:
7-
name: Check if any auto-fixes are needed
7+
name: Checking if any fixes are needed
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
1313
- uses: actions/setup-python@v4
1414
with:
15-
python-version: 3.x
15+
python-version: 3.8
1616
- id: changed-files
1717
uses: tj-actions/changed-files@v36
1818
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@ repos:
1818
hooks:
1919
- id: clang-format
2020
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$
21+
- repo: https://github.com/psf/black-pre-commit-mirror
22+
rev: 22.10.0
23+
hooks:
24+
- id: black
25+
language_version: python3.8
2126
- repo: https://github.com/PyCQA/flake8
2227
rev: 7.0.0
2328
hooks:
2429
- id: flake8
2530
files: \.(((py)(w|o)?$))$
31+
additional_dependencies:
32+
- flake8-bugbear
33+
- flake8-comprehensions
34+
- flake8-simplify

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.black]
2+
line-length = 120

0 commit comments

Comments
 (0)