From b1586e8862b3aefb925188b4cf56fc569ef5db8a Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Mon, 5 Feb 2024 15:00:41 +0100 Subject: [PATCH] template update --- .cruft.json | 2 +- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 12 +++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.cruft.json b/.cruft.json index f5b7372..4da1932 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/ecmwf-projects/cookiecutter-conda-package", - "commit": "d7af7236036e91f530260569aa5b232ed4ffbdd2", + "commit": "da39a50a54a0800fc192b7236ee5da405dd5a96d", "checkout": null, "context": { "cookiecutter": { diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f503b0f..c70baef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: blackdoc additional_dependencies: [black==23.11.0] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.14 + rev: v0.2.0 hooks: - id: ruff args: [--fix, --show-fixes] @@ -34,6 +34,6 @@ repos: - id: pretty-format-toml args: [--autofix] - repo: https://github.com/gitleaks/gitleaks - rev: v8.18.1 + rev: v8.18.2 hooks: - id: gitleaks diff --git a/pyproject.toml b/pyproject.toml index d57310d..bab7847 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,13 +44,16 @@ module = [ ] [tool.ruff] +# Same as Black. +indent-width = 4 +line-length = 88 +target-version = "py311" + +[tool.ruff.lint] ignore = [ # pydocstyle: Missing Docstrings "D1" ] -# Same as Black. -indent-width = 4 -line-length = 88 select = [ # pyflakes "F", @@ -64,12 +67,11 @@ select = [ # Pyupgrade "UP" ] -target-version = "py311" [tool.ruff.lint.pycodestyle] max-line-length = 110 -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" [tool.setuptools]