We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4517ab7 commit c5ffd07Copy full SHA for c5ffd07
.github/workflows/lint.yml
@@ -0,0 +1,27 @@
1
+name: Lint
2
+
3
+on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
8
+ types: [opened, synchronize, reopened]
9
10
+jobs:
11
+ lint:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.11'
20
21
+ - name: Install dependencies
22
+ run: |
23
+ pip install black
24
25
+ - name: Check code formatting with Black
26
27
+ black --check .
.pre-commit-config.yaml
@@ -0,0 +1,6 @@
+repos:
+- repo: https://github.com/psf/black
+ rev: 23.3.0
+ hooks:
+ - id: black
+ language_version: python3.11
0 commit comments