|
1 | 1 | # ref: https://setuptools.pypa.io/en/stable/userguide/pyproject_config.html |
2 | 2 | [project] |
3 | | -authors = [ |
4 | | - { name = "First Last", email = "first.last@gmail.com" }, |
5 | | -] |
| 3 | +authors = [{ name = "First Last", email = "first.last@gmail.com" }] |
6 | 4 | description = "A small example package" |
7 | 5 | name = "python_package" |
8 | 6 | # This means: Load the version from the package itself. |
9 | 7 | # 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 |
12 | 11 | ] |
13 | 12 | readme = "README.md" |
14 | 13 | requires-python = ">=3.9" # test all higher Python versions |
@@ -44,20 +43,19 @@ docs = [ |
44 | 43 | "sphinx-copybutton", |
45 | 44 | ] |
46 | 45 | # local development options |
47 | | -dev = ["black[jupyter]", "ruff", "pytest"] |
| 46 | +dev = ["black[jupyter]", "ruff", "pytest", "isort", "jupytext"] |
48 | 47 |
|
49 | | -# Configure the Ruff linter: Ignore error number 501 |
50 | 48 | [tool.ruff] |
51 | 49 | # 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) |
54 | 50 |
|
55 | 51 | [tool.ruff.lint] |
56 | 52 | # https://docs.astral.sh/ruff/tutorial/#rule-selection |
57 | 53 | # 1. Enable flake8-bugbear (`B`) rules |
58 | 54 | # 2. Enable pycodestyle (`E`) errors and (`W`) warnings |
59 | 55 | # 3. Pyflakes (`F`) errors |
60 | 56 | extend-select = ["E", "W", "F", "B"] |
| 57 | +# Ignore line length errors: |
| 58 | +# ignore = ["E501"] |
61 | 59 |
|
62 | 60 | [build-system] |
63 | 61 | build-backend = "setuptools.build_meta" |
|
0 commit comments