Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidy pyproject.toml #7888

Merged
merged 5 commits into from
May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 24 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
name = "poetry"
version = "1.5.0.dev0"
description = "Python dependency management and packaging made easy."
authors = [
"Sébastien Eustace <[email protected]>",
]
authors = ["Sébastien Eustace <[email protected]>"]
maintainers = [
"Arun Babu Neelicattu <[email protected]>",
"Bjorn Neergaard <[email protected]>",
Expand All @@ -16,25 +14,20 @@ maintainers = [
]
license = "MIT"
readme = "README.md"
packages = [
{ include = "poetry", from = "src" }
]
include = [
{ path = "tests", format = "sdist" }
]
packages = [{ include = "poetry", from = "src" }]
include = [{ path = "tests", format = "sdist" }]
homepage = "https://python-poetry.org/"
repository = "https://github.com/python-poetry/poetry"
documentation = "https://python-poetry.org/docs"
keywords = ["packaging", "dependency", "poetry"]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules"
"Topic :: Software Development :: Libraries :: Python Modules",
]

[tool.poetry.urls]
Changelog = "https://python-poetry.org/history/"


# Requirements
[tool.poetry.dependencies]
python = "^3.7"
Expand Down Expand Up @@ -99,7 +92,6 @@ optional = true
[tool.poetry.group.github-actions.dependencies]
pytest-github-actions-annotate-failures = "^0.1.7"


[tool.poetry.scripts]
poetry = "poetry.console.application:main"

Expand All @@ -112,28 +104,28 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff]
fix = true
unfixable = [
"ERA", # do not autoremove commented out code
"ERA", # do not autoremove commented out code
]
target-version = "py37"
line-length = 88
extend-select = [
"B", # flake8-bugbear
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"PIE", # flake8-pie
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"N", # pep8-naming
"RUF", # ruff checks
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"I", # isort
"PGH", # pygrep
]
ignore = [
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818" # Exception name should be named with an Error suffix
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818", # Exception name should be named with an Error suffix
]
extend-exclude = [
"docs/*",
Expand Down Expand Up @@ -176,9 +168,9 @@ enable_error_code = [
"truthy-bool",
]
exclude = [
"tests/fixtures",
"tests/masonry/builders/fixtures",
"tests/utils/fixtures"
"tests/fixtures",
"tests/masonry/builders/fixtures",
"tests/utils/fixtures",
]

# use of importlib-metadata backport makes it impossible to satisfy mypy
Expand All @@ -189,9 +181,9 @@ module = [
'poetry.plugins.plugin_manager',
'poetry.repositories.installed_repository',
'poetry.utils.env',
'tests.console.commands.self.test_show_plugins',
'tests.helpers',
'tests.repositories.test_installed_repository',
'tests.console.commands.self.test_show_plugins'
]
warn_unused_ignores = false

Expand All @@ -208,16 +200,14 @@ module = [
'shellingham.*',
'virtualenv.*',
'xattr.*',
'zipp.*'
'zipp.*',
]
ignore_missing_imports = true


[tool.pytest.ini_options]
addopts = "-n auto"
testpaths = [
"tests"
]
testpaths = ["tests"]


[tool.coverage.report]
Expand Down