Skip to content

Commit

Permalink
pyproject.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Dec 25, 2023
1 parent ba530b6 commit f88d706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions ruff.toml → pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
Expand Down Expand Up @@ -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.
Expand All @@ -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"]
Expand Down

0 comments on commit f88d706

Please sign in to comment.