Skip to content

Commit

Permalink
Update ruff options
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 29, 2024
1 parent 98a5571 commit 6ecfa7b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6ecfa7b

Please sign in to comment.