Tweak my Python setup

This commit is contained in:
Gerard Vermeulen 2023-12-30 13:48:47 +01:00
parent ec4f4a01a5
commit 3a75ac2a46
1 changed files with 8 additions and 2 deletions

View File

@ -5819,12 +5819,17 @@ Complete the result with \"system\"."
#+caption: Kickoff =pyproject.toml= proposal.
#+name: lst:pyproject-toml-kickoff
#+begin_src toml -n :tangle pyproject.toml
# Use for instance "hatch new" to create or initialize a project.
# See: https://pypi.org/project/hatch
# See:
# https://docs.astral.sh/ruff/configuration/
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 88
select = [
@ -5840,6 +5845,7 @@ select = [
]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"D202", # no blank lines allowed after function docstring
]
[tool.ruff.mccabe]