From f88d7061aac7a60fbae4489414f6df4248c005f2 Mon Sep 17 00:00:00 2001 From: Mikael Lund Date: Mon, 25 Dec 2023 14:31:37 +0000 Subject: [PATCH] pyproject.toml file --- README.md | 2 +- ruff.toml => pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename ruff.toml => pyproject.toml (97%) diff --git a/README.md b/README.md index 3bdf80b..06e9bb8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Description of the directory layout. dependencies as their behavior may change in the future. The environment is currently called `my_environment` and you'll likely want to rename it to something less generic. - `.zenodo.json` metadata for Zenodo. -- `ruff.toml` and `github/workflows/ruff.yml` sets up ruff linting for Python and Jupyter Notebooks. Delete if not relevant to your project. +- `pyproject.toml` and `github/workflows/ruff.yml` sets up ruff linting for Python and Jupyter Notebooks. Delete if not relevant to your project. ## Requirements diff --git a/ruff.toml b/pyproject.toml similarity index 97% rename from ruff.toml rename to pyproject.toml index e62b268..e8ab237 100644 --- a/ruff.toml +++ b/pyproject.toml @@ -1,3 +1,4 @@ +[tool.ruff] # Exclude a variety of commonly ignored directories. exclude = [ ".bzr", @@ -37,7 +38,7 @@ indent-width = 4 # Assume Python 3.8 target-version = "py38" -[lint] +[tool.ruff.lint] # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. @@ -51,7 +52,7 @@ unfixable = [] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -[format] +[tool.ruff.format] # Like Black, use double quotes for strings. quote-style = "double" exclude = ["*.ipynb"]