Skip to content

Commit

Permalink
tidy pyproject.toml (python-poetry#7888)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored May 8, 2023
1 parent 5ec7648 commit 1af8929
Showing 1 changed file with 24 additions and 34 deletions.
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 <sebastien@eustace.io>",
]
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
maintainers = [
"Arun Babu Neelicattu <arun.neelicattu@gmail.com>",
"Bjorn Neergaard <bjorn@neersighted.com>",
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

0 comments on commit 1af8929

Please sign in to comment.