From 1d544043f8c8198ad2d956e4077edd83b45872b9 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 20 Aug 2023 14:27:10 -0400 Subject: [PATCH] Add ruff config --- {{cookiecutter.project_slug}}/pyproject.toml | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 45f344e..caf0352 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -8,3 +8,30 @@ filter_files = true line-length = 120 skip-string-normalization = true exclude = "(^/\\.git|^/env/|^/venv/|^/node_modules/)" + +[tool.ruff] +line-length = 120 +# Exclude a variety of commonly ignored directories. +exclude = [ + ".bzr", + ".direnv", + ".eggs", + ".git", + ".git-rewrite", + ".hg", + ".mypy_cache", + ".nox", + ".pants.d", + ".pytype", + ".ruff_cache", + ".svn", + ".tox", + ".venv", + "__pypackages__", + "_build", + "buck-out", + "build", + "dist", + "node_modules", + "venv", +]