Skip to content

Commit

Permalink
added a lint to test a github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Fulk committed Nov 9, 2023
1 parent 5d0d916 commit 78b8deb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
Empty file removed docs/api.md
Empty file.
Empty file removed docs/index.md
Empty file.
1 change: 0 additions & 1 deletion py_do_you_even_diff_bro/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import typer
from rich.console import Console
from rich.table import Table
from typer import Argument, Option, confirm, prompt

from py_do_you_even_diff_bro.commandments import SUMMARY_BRO_PROMPT, get_diff_prompt
from py_do_you_even_diff_bro.constants import (
Expand Down

0 comments on commit 78b8deb

Please sign in to comment.