forked from paradedb/paradedb
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 935 Bytes
/
lint-python.yml
File metadata and controls
43 lines (33 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# workflows/lint-python.yml
#
# Lint Python
# Lint Python files using Black, Pylint, and Flake8.
name: Lint Python
on:
pull_request:
paths:
- "**/*.sh"
- ".github/workflows/lint-bash.yml"
workflow_dispatch:
concurrency:
group: lint-python-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-python:
name: Lint Python Files
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Dependencies
run: pip install black pylint flake8
- name: Run Black for Code Formatting
run: black --check .
- name: Run Pylint for Static Code Analysis
run: pylint **/*.py
- name: Run Flake8 for Style Guide Enforcement
run: flake8 . --max-line-length=100