From 8ad57e53aff40411456154c04857566b54ca534a Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Mon, 14 Jul 2025 14:12:31 +0200 Subject: [PATCH 1/2] :art: format pyproject file --- pyproject.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7a59c2e..2813660 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,13 @@ # ref: https://setuptools.pypa.io/en/stable/userguide/pyproject_config.html [project] -authors = [ - { name = "First Last", email = "first.last@gmail.com" }, -] +authors = [{ name = "First Last", email = "first.last@gmail.com" }] description = "A small example package" name = "python_package" # This means: Load the version from the package itself. # See the section below: [tools.setuptools.dynamic] -dynamic = ["version", # version is loaded from the package -#"dependencies", # add if using requirements.txt +dynamic = [ + "version", # version is loaded from the package + #"dependencies", # add if using requirements.txt ] readme = "README.md" requires-python = ">=3.9" # test all higher Python versions From 0a5360c0721d91134bef648fc500b5897d53c099 Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Mon, 14 Jul 2025 14:13:49 +0200 Subject: [PATCH 2/2] :bug: fix how line length errors can be ignored (deactivated per default) --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2813660..8d614cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,11 +45,8 @@ docs = [ # local development options dev = ["black[jupyter]", "ruff", "pytest"] -# Configure the Ruff linter: Ignore error number 501 [tool.ruff] # https://docs.astral.sh/ruff/rules/#flake8-bandit-s -# lint.ignore = ["E501"] # Ignore line length errors -# Allow lines to be as long as (default is 88 in black) [tool.ruff.lint] # https://docs.astral.sh/ruff/tutorial/#rule-selection @@ -57,6 +54,8 @@ dev = ["black[jupyter]", "ruff", "pytest"] # 2. Enable pycodestyle (`E`) errors and (`W`) warnings # 3. Pyflakes (`F`) errors extend-select = ["E", "W", "F", "B"] +# Ignore line length errors: +# ignore = ["E501"] [build-system] build-backend = "setuptools.build_meta"