Skip to content

Commit

Permalink
More pyproject.toml updates (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Dec 11, 2022
1 parent 5e4e0e4 commit 3c2eb7f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -42,3 +42,6 @@ repos:
rev: v3.0.0-alpha.4
hooks:
- id: prettier
additional_dependencies:
- "prettier"
- "prettier-plugin-toml"
48 changes: 20 additions & 28 deletions pyproject.toml
Expand Up @@ -36,13 +36,14 @@ classifiers = [
]
keywords = ["pip", "requirements", "packaging"]
dependencies = [
# direct dependencies
"build",
"click >= 8",
"pip >= 22.2",
# indirect dependencies
"setuptools", # typically needed when pip-tools invokes setup.py
"wheel", # pip plugin needed by pip-tools
# direct dependencies
"build",
"click >= 8",
"pip >= 22.2",
# indirect dependencies
"setuptools", # typically needed when pip-tools invokes setup.py
"wheel", # pip plugin needed by pip-tools

]

[project.urls]
Expand All @@ -53,16 +54,14 @@ changelog = "https://github.com/jazzband/pip-tools/releases"

[project.optional-dependencies]
testing = [
"pytest >= 7.2.0",
"pytest-rerunfailures",
"pytest-xdist",
# build deps for tests
"flit_core >=2,<4",
"poetry_core>=1.0.0",
]
coverage = [
"pytest-cov",
"pytest >= 7.2.0",
"pytest-rerunfailures",
"pytest-xdist",
# build deps for tests
"flit_core >=2,<4",
"poetry_core>=1.0.0",
]
coverage = ["pytest-cov"]

[project.scripts]
pip-compile = "piptools.scripts.compile:cli"
Expand All @@ -87,30 +86,23 @@ warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true

# Avoid error: Duplicate module named 'setup'
# https://github.com/python/mypy/issues/4008
exclude = "^tests/test_data/"

[tool.mypy.overrides]
modules = [
"tests.*"
]
modules = ["tests.*"]
disallow_untyped_defs = false

[tool.pytest.ini_options]
addopts = [
# `pytest-xdist`:
"--numprocesses=auto"
# `pytest-xdist`:
"--numprocesses=auto"
]
norecursedirs = ".* build dist venv test_data piptools/_compat/*"
testpaths = "tests piptools"
filterwarnings = [
"always"
]
markers = [
"network: mark tests that require internet access"
]
filterwarnings = ["always"]
markers = ["network: mark tests that require internet access"]

[tool.setuptools.packages.find]
# needed only because we did not adopt src layout yet
Expand Down

0 comments on commit 3c2eb7f

Please sign in to comment.