From 2ef5a8f806b9f8e6b3fb1005b10707bc89029fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20Syrj=C3=A4salo?= Date: Mon, 29 Jul 2024 13:46:24 +0300 Subject: [PATCH] build(ruff): Ignore and exclude ruff_cache dir --- .gitignore | 3 +++ pyproject.toml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index eec1b6d..1747f44 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ dist/ # setuptools *.egg-info + +# ruff +.ruff_cache/ diff --git a/pyproject.toml b/pyproject.toml index c309881..2b01664 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ tests = { composite = ["test", "atest"] } format = "ruff format ." lint = "ruff check ." docs = "python -m robot.libdoc -P src REST docs/index.html" -clear = { shell = "rm -rf dist/ node_modules/ .pdm-build/ .pytest_cache/ results/ src/*.egg-info mb.pid *.log" } +clear = { shell = "rm -rf dist/ node_modules/ .pdm-build/ .pytest_cache/ .ruff_cache/ results/ src/*.egg-info mb.pid *.log" } [tool.pytest] testpaths = "test" @@ -77,6 +77,7 @@ indent-width = 4 exclude = [ ".git", ".pytest_cache", + '.ruff_cache', ".venv", "atest", "dist",