Skip to content

Commit 3d8f3d6

Browse files
authored
fix: add linter (#9)
1 parent f53eaeb commit 3d8f3d6

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/semantic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always validate the PR title AND all the commits
2+
titleAndCommits: true

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
lint:
10+
name: Run Linters
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Super-Linter
19+
uses: github/super-linter@v4.9.2
20+
env:
21+
VALIDATE_ALL_CODEBASE: false
22+
VALIDATE_PYTHON_BLACK: true
23+
DEFAULT_BRANCH: master
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
LINTER_RULES_PATH: /
26+
PYTHON_BLACK_CONFIG_FILE: pyproject.toml

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)