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
4 changes: 1 addition & 3 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff flake8
pip install ruff
- name: Run Ruff
run: ruff check --output-format=github .
- name: Run Flake8
run: flake8 --max-line-length 120
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
]

[project.optional-dependencies]
dev = ["ruff"]

[project.urls]
"Homepage" = "https://github.com/kanboard/python-api-client"
"Bug Reports" = "https://github.com/kanboard/python-api-client/issues"
Expand All @@ -25,3 +28,9 @@ classifiers = [
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 120

[tool.ruff.lint]
select = ["E", "F", "W", "I"]
4 changes: 2 additions & 2 deletions tests/test_kanboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

import unittest
from unittest import mock
import types
import unittest
import warnings
from unittest import mock

import kanboard

Expand Down