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.
pre-commit
black
1 parent f7aa5fc commit 731128eCopy full SHA for 731128e
.github/workflows/lint.yml
@@ -0,0 +1,20 @@
1
+name: Linting
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ build:
7
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ python-version: [3.8]
12
13
+ steps:
14
+ - uses: actions/checkout@v1
15
+ - name: Set up Python ${{ matrix.python-version }}
16
+ uses: actions/setup-python@v1
17
+ with:
18
+ python-version: ${{ matrix.python-version }}
19
+ - name: Run pre-commit hook
20
+ uses: pre-commit/[email protected]
.pre-commit-config.yaml
@@ -0,0 +1,6 @@
+repos:
+- repo: https://github.com/psf/black
+ rev: 22.12.0
+ hooks:
+ - id: black
+ exclude: ^torch_np/tests/numpy_tests/
0 commit comments