From 1d310717744904bf9e59c433be16fb5d144edfc4 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Mon, 5 Aug 2024 23:19:15 -0700 Subject: [PATCH] pointless precommit update --- docs/conf.py | 2 +- pyproject.toml | 40 ++++++++++++---------------------------- 2 files changed, 13 insertions(+), 29 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 344a595..f7cae1d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,5 +3,5 @@ author = "numFOCUS Infrastructure Committee" project = "numFOCUS Project Infrastructure" release = "" -copyright = f"{datetime.now().year}, {author}" # NOQA: A001 +copyright = f"{datetime.now().year}, {author}" # NOQA: A001 DTZ005 html_theme = "pydata_sphinx_theme" diff --git a/pyproject.toml b/pyproject.toml index 61bdff3..65d6953 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target-version = ['py39'] +target-version = ['py312'] [tool.isort] profile = "black" @@ -10,41 +10,25 @@ length_sort_sections = "stdlib" [tool.ruff] # Allow unused variables when underscore-prefixed. -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -target-version = "py39" +lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" +target-version = "py312" line-length = 120 -exclude=[ - ".git,", +extend-exclude=[ "__pycache__", "build", "tools/**", ".history", ] -select = [ - "E", - "F", - "W", - "UP", - "PT", - "RET", - "TID", - "PLE", - "NPY", - "RUF", - "PGH", - "PTH", - "BLE", - "FBT", - "B", - "A", - "COM", - "C4", - "T20", - "RSE", - "ERA", +lint.select = [ + "ALL", ] +lint.extend-ignore = [ + "D100", # Missing docstring in public module + "INP001", # conf.py is part of an implicit namespace package +] + -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" [tool.codespell]