Skip to content

Commit 6615d19

Browse files
authored
Update pyproject.toml (#4)
* 🎨 format pyproject file * 🐛 fix how line length errors can be ignored (deactivated per default)
1 parent 96a989a commit 6615d19

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pyproject.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# ref: https://setuptools.pypa.io/en/stable/userguide/pyproject_config.html
22
[project]
3-
authors = [
4-
{ name = "First Last", email = "first.last@gmail.com" },
5-
]
3+
authors = [{ name = "First Last", email = "first.last@gmail.com" }]
64
description = "A small example package"
75
name = "python_package"
86
# This means: Load the version from the package itself.
97
# See the section below: [tools.setuptools.dynamic]
10-
dynamic = ["version", # version is loaded from the package
11-
#"dependencies", # add if using requirements.txt
8+
dynamic = [
9+
"version", # version is loaded from the package
10+
#"dependencies", # add if using requirements.txt
1211
]
1312
readme = "README.md"
1413
requires-python = ">=3.9" # test all higher Python versions
@@ -46,18 +45,17 @@ docs = [
4645
# local development options
4746
dev = ["black[jupyter]", "ruff", "pytest"]
4847

49-
# Configure the Ruff linter: Ignore error number 501
5048
[tool.ruff]
5149
# https://docs.astral.sh/ruff/rules/#flake8-bandit-s
52-
# lint.ignore = ["E501"] # Ignore line length errors
53-
# Allow lines to be as long as (default is 88 in black)
5450

5551
[tool.ruff.lint]
5652
# https://docs.astral.sh/ruff/tutorial/#rule-selection
5753
# 1. Enable flake8-bugbear (`B`) rules
5854
# 2. Enable pycodestyle (`E`) errors and (`W`) warnings
5955
# 3. Pyflakes (`F`) errors
6056
extend-select = ["E", "W", "F", "B"]
57+
# Ignore line length errors:
58+
# ignore = ["E501"]
6159

6260
[build-system]
6361
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)