Tweak my Python setup

This commit is contained in:
Gerard Vermeulen 2023-12-30 13:48:47 +01:00
parent ec4f4a01a5
commit 3a75ac2a46

View File

@ -5819,12 +5819,17 @@ Complete the result with \"system\"."
#+caption: Kickoff =pyproject.toml= proposal. #+caption: Kickoff =pyproject.toml= proposal.
#+name: lst:pyproject-toml-kickoff #+name: lst:pyproject-toml-kickoff
#+begin_src toml -n :tangle pyproject.toml #+begin_src toml -n :tangle pyproject.toml
# Use for instance "hatch new" to create or initialize a project. # See:
# See: https://pypi.org/project/hatch # 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] [tool.black]
line-length = 88 line-length = 88
[tool.isort]
profile = "black"
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
select = [ select = [
@ -5840,6 +5845,7 @@ select = [
] ]
ignore = [ ignore = [
"B905", # `zip()` without an explicit `strict=` parameter "B905", # `zip()` without an explicit `strict=` parameter
"D202", # no blank lines allowed after function docstring
] ]
[tool.ruff.mccabe] [tool.ruff.mccabe]