Skip to content

Commit

Permalink
chore: add linters (#57)
Browse files Browse the repository at this point in the history
* chore: add black formatter

* chore: add ruff linter
  • Loading branch information
agrrh authored Jul 24, 2024
1 parent bab460e commit b84a75f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint-python-black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

name: "Lint: python/black"

on:
- push
- pull_request

jobs:
lint-python-ruff:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./bot"
17 changes: 17 additions & 0 deletions .github/workflows/lint-python-ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

name: "Lint: python/ruff"

on:
- push
- pull_request

jobs:
lint-python-ruff:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
src: "./bot"

0 comments on commit b84a75f

Please sign in to comment.