Commit 1af8929a by danieleades Committed by GitHub

tidy pyproject.toml (#7888)

parent 5ec7648a
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
name = "poetry" name = "poetry"
version = "1.5.0.dev0" version = "1.5.0.dev0"
description = "Python dependency management and packaging made easy." description = "Python dependency management and packaging made easy."
authors = [ authors = ["Sébastien Eustace <sebastien@eustace.io>"]
"Sébastien Eustace <sebastien@eustace.io>",
]
maintainers = [ maintainers = [
"Arun Babu Neelicattu <arun.neelicattu@gmail.com>", "Arun Babu Neelicattu <arun.neelicattu@gmail.com>",
"Bjorn Neergaard <bjorn@neersighted.com>", "Bjorn Neergaard <bjorn@neersighted.com>",
...@@ -16,25 +14,20 @@ maintainers = [ ...@@ -16,25 +14,20 @@ maintainers = [
] ]
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
packages = [ packages = [{ include = "poetry", from = "src" }]
{ include = "poetry", from = "src" } include = [{ path = "tests", format = "sdist" }]
]
include = [
{ path = "tests", format = "sdist" }
]
homepage = "https://python-poetry.org/" homepage = "https://python-poetry.org/"
repository = "https://github.com/python-poetry/poetry" repository = "https://github.com/python-poetry/poetry"
documentation = "https://python-poetry.org/docs" documentation = "https://python-poetry.org/docs"
keywords = ["packaging", "dependency", "poetry"] keywords = ["packaging", "dependency", "poetry"]
classifiers = [ classifiers = [
"Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules" "Topic :: Software Development :: Libraries :: Python Modules",
] ]
[tool.poetry.urls] [tool.poetry.urls]
Changelog = "https://python-poetry.org/history/" Changelog = "https://python-poetry.org/history/"
# Requirements # Requirements
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.7"
...@@ -99,7 +92,6 @@ optional = true ...@@ -99,7 +92,6 @@ optional = true
[tool.poetry.group.github-actions.dependencies] [tool.poetry.group.github-actions.dependencies]
pytest-github-actions-annotate-failures = "^0.1.7" pytest-github-actions-annotate-failures = "^0.1.7"
[tool.poetry.scripts] [tool.poetry.scripts]
poetry = "poetry.console.application:main" poetry = "poetry.console.application:main"
...@@ -112,28 +104,28 @@ build-backend = "poetry.core.masonry.api" ...@@ -112,28 +104,28 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff] [tool.ruff]
fix = true fix = true
unfixable = [ unfixable = [
"ERA", # do not autoremove commented out code "ERA", # do not autoremove commented out code
] ]
target-version = "py37" target-version = "py37"
line-length = 88 line-length = 88
extend-select = [ extend-select = [
"B", # flake8-bugbear "B", # flake8-bugbear
"C4", # flake8-comprehensions "C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate "ERA", # flake8-eradicate/eradicate
"PIE", # flake8-pie "I", # isort
"SIM", # flake8-simplify "N", # pep8-naming
"TID", # flake8-tidy-imports "PIE", # flake8-pie
"TCH", # flake8-type-checking "PGH", # pygrep
"N", # pep8-naming "RUF", # ruff checks
"RUF", # ruff checks "SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade "UP", # pyupgrade
"I", # isort
"PGH", # pygrep
] ]
ignore = [ ignore = [
"B904", # use 'raise ... from err' "B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()' "B905", # use explicit 'strict=' parameter with 'zip()'
"N818" # Exception name should be named with an Error suffix "N818", # Exception name should be named with an Error suffix
] ]
extend-exclude = [ extend-exclude = [
"docs/*", "docs/*",
...@@ -176,9 +168,9 @@ enable_error_code = [ ...@@ -176,9 +168,9 @@ enable_error_code = [
"truthy-bool", "truthy-bool",
] ]
exclude = [ exclude = [
"tests/fixtures", "tests/fixtures",
"tests/masonry/builders/fixtures", "tests/masonry/builders/fixtures",
"tests/utils/fixtures" "tests/utils/fixtures",
] ]
# use of importlib-metadata backport makes it impossible to satisfy mypy # use of importlib-metadata backport makes it impossible to satisfy mypy
...@@ -189,9 +181,9 @@ module = [ ...@@ -189,9 +181,9 @@ module = [
'poetry.plugins.plugin_manager', 'poetry.plugins.plugin_manager',
'poetry.repositories.installed_repository', 'poetry.repositories.installed_repository',
'poetry.utils.env', 'poetry.utils.env',
'tests.console.commands.self.test_show_plugins',
'tests.helpers', 'tests.helpers',
'tests.repositories.test_installed_repository', 'tests.repositories.test_installed_repository',
'tests.console.commands.self.test_show_plugins'
] ]
warn_unused_ignores = false warn_unused_ignores = false
...@@ -208,16 +200,14 @@ module = [ ...@@ -208,16 +200,14 @@ module = [
'shellingham.*', 'shellingham.*',
'virtualenv.*', 'virtualenv.*',
'xattr.*', 'xattr.*',
'zipp.*' 'zipp.*',
] ]
ignore_missing_imports = true ignore_missing_imports = true
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "-n auto" addopts = "-n auto"
testpaths = [ testpaths = ["tests"]
"tests"
]
[tool.coverage.report] [tool.coverage.report]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment