From 6ecfa7bd03052e45e4969b44ebcbbfb7d707950b Mon Sep 17 00:00:00 2001 From: "Pablo R. Mier" Date: Mon, 29 Apr 2024 20:33:16 +0200 Subject: [PATCH] Update ruff options --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df32394..7fc76f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,9 @@ +fail_fast: false +default_language_version: + python: python3 +default_stages: +- commit +- push repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. diff --git a/pyproject.toml b/pyproject.toml index fcc88f9..6ab5481 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,18 @@ networkx = ["networkx"] matplotlib = ["matplotlib"] +[tool.ruff] +ignore-init-module-imports = true +fix = true +select = ["E", "F", "W", "I", "D", "RUF"] + +[tool.ruff.flake8-quotes] +docstring-quotes = "double" + +[tool.ruff.pydocstyle] +convention = "google" + + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"