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

Enable TOML reformatting in prettier #1768

Merged
merged 1 commit into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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