Skip to content

Commit d3b62dd

Browse files
committed
update python ci
1 parent e07f2dd commit d3b62dd

File tree

3 files changed

+37
-32
lines changed

3 files changed

+37
-32
lines changed

.github/workflows/python_lint.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Ensure Python code is linted and formatted, matching the style guide
2+
name: Python Linting
3+
4+
on:
5+
push:
6+
paths:
7+
- "**/*.py"
8+
9+
jobs:
10+
black-lint:
11+
runs-on: ubuntu-latest
12+
name: Python black Lint
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: psf/black@stable
16+
# flake8-lint:
17+
# runs-on: ubuntu-latest
18+
# name: Python flake8 Lint
19+
# steps:
20+
# - name: Check out source repository
21+
# uses: actions/checkout@v3
22+
23+
# - name: Set up Python environment
24+
# uses: actions/setup-python@v4
25+
# with:
26+
# python-version: "3.11"
27+
28+
# - name: flake8 Lint
29+
# uses: py-actions/flake8@v2
30+
# with:
31+
# ignore: "E701,W503,E203"
32+
# exclude: "docs,.idea"
33+
# max-line-length: "88"
34+
# path: "."
35+
# plugins: "flake8-docstrings flake8-black"

.github/workflows/python_lint.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

academy/academy_rest_api/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Models for the academy_rest_api Django app."""
2+
13
from django.db import models
24

35
# Create your models here.

0 commit comments

Comments
 (0)