From 96ce06edfc31690d63067ade4e4b2a5e65dafbc9 Mon Sep 17 00:00:00 2001 From: yupix Date: Mon, 30 Oct 2023 03:21:47 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20black=E3=82=92=E3=82=84=E3=82=81?= =?UTF-8?q?=E3=81=A6ruff=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- README_JP.md | 2 +- pyproject.toml | 3 +++ setup.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2de869d..aa8eec3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # MiPAC Discord server invite - +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) diff --git a/README_JP.md b/README_JP.md index b43f25a..2d5e6d6 100644 --- a/README_JP.md +++ b/README_JP.md @@ -1,7 +1,7 @@ # MiPAC Discord server invite - +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) diff --git a/pyproject.toml b/pyproject.toml index cde840d..0561d41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,5 +19,8 @@ build-backend = "setuptools.build_meta" [tool.ruff] line-length = 99 +[tool.ruff.format] +exclude = ["mipac/_version.py"] + [tool.ruff.per-file-ignores] "__init__.py" = ["E402", "F403"] diff --git a/setup.py b/setup.py index 2ecb2ba..cd3b597 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open('requirements.txt', 'r') as f: requirements = f.read().splitlines() extras_require = { - 'dev': ['black', 'isort', 'mypy', 'flake8', 'pre-commit', 'ruff'], + 'dev': ['isort', 'mypy', 'flake8', 'pre-commit', 'ruff'], 'ci': ['flake8', 'mypy', 'ruff'], 'speed': ['orjson'], 'doc': ['sphinx', 'furo', 'sphinxcontrib_trio', 'sphinx-intl', 'numpydoc'],