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 fd814e9 commit a044f23Copy full SHA for a044f23
.github/workflows/lint.yml
@@ -0,0 +1,26 @@
1
+name: Lint
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ lint:
7
+ runs-on: ubuntu-latest
8
9
+ steps:
10
+ - uses: actions/checkout@v2
11
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v4
14
+ with:
15
+ python-version: '3.10' # or any version your project uses
16
17
+ - name: Install dependencies
18
+ run: |
19
+ python -m pip install --upgrade pip
20
+ pip install black ruff
21
22
+ - name: Run Black
23
+ run: black --check .
24
25
+ - name: Run Ruff (no formatting)
26
+ run: ruff check . --no-fix
.pre-commit-config.yaml
@@ -28,4 +28,4 @@ repos:
28
rev: v0.12.1
29
hooks:
30
- id: ruff
31
- args: [] # No --fix, disables formatting
+ args: [--fix]
0 commit comments