From 47176699ed65d43f55356671de505f9399054e82 Mon Sep 17 00:00:00 2001 From: necusjz Date: Sun, 17 Dec 2023 23:19:11 +0800 Subject: [PATCH] style: enable lint check --- .github/workflows/publish.yaml | 5 +++++ .gitignore | 1 + pyproject.toml | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d7a8c00..5d1c541 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -34,6 +34,11 @@ jobs: pytest -s -v --color=yes tests/ include: + - python: "3.10" + task: + name: Lint + run: ruff check . + - python: "3.10" task: name: Build diff --git a/.gitignore b/.gitignore index 9a9e7c9..48b530d 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,4 @@ cython_debug/ # General .vagrant/ +.ruff_cache/ diff --git a/pyproject.toml b/pyproject.toml index 98ffb82..9dff682 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,3 +53,10 @@ exclude = [ [tool.setuptools.dynamic] version = {attr = "src.splatbot.version.VERSION"} + +[tool.ruff] +line-length = 120 +target-version = "py310" + +[tool.ruff.per-file-ignores] +"__init__.py" = ["F401"]