Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 8873ee8

Browse files
committed
Add check-python-syntax action + renovate config
Signed-off-by: Christian Berendt <[email protected]>
1 parent d34a399 commit 8873ee8

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[flake8]
2+
max-line-length = 200
3+
exclude =
4+
files/deploy
5+
files/disable
6+
files/generate
7+
files/import

.github/renovate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": [
3+
"github>osism/renovate-config",
4+
"github>osism/renovate-config:docker",
5+
"github>osism/renovate-config:python"
6+
]
7+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Check python syntax
3+
4+
"on":
5+
push:
6+
paths:
7+
- '**.py'
8+
- .github/workflows/check-python-syntax.yml
9+
branches:
10+
- main
11+
pull_request:
12+
paths:
13+
- '**.py'
14+
- .github/workflows/check-python-syntax.yml
15+
16+
jobs:
17+
check-python-syntax:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
24+
- run: pip3 install flake8
25+
- run: flake8

0 commit comments

Comments
 (0)