Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/black.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/flake8.yml

This file was deleted.

16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Run unit tests
name: Tests

on:
push:
branches: [main]
branches:
- main
pull_request:

jobs:
Expand All @@ -11,8 +12,11 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]

python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -23,6 +27,10 @@ jobs:
run: |
pip install -U pip
pip install -r requirements.txt
- name: Lint and check formatting
run: |
ruff check .
ruff format --check .
- name: Run all tests
run: |
pytest . -v
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ python3 app.py

#### Linting
```zsh
# Run flake8 from root directory for linting
flake8 *.py && flake8 listeners/
# Run ruff from root directory for linting
ruff check .

# Run black from root directory for code formatting
black .
# Run ruff from root directory for code formatting
ruff format .
```

#### Testing
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[tool.black]
[tool.ruff]
line-length = 125
exclude = [".venv", "venv"]

[tool.ruff.format]
quote-style = "double"

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
slack-bolt==1.27.0
pytest==9.0.2
flake8==7.3.0
black==25.12.0
ruff==0.9.4
slack-bolt==1.27.0