Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ repos:
mascot\.svg
)$

- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.9.3
hooks:
- id: tombi-format
- id: tombi-lint

- repo: local
hooks:
# Mypy is difficult to run pre-commit's isolated environment as it needs
Expand Down
10 changes: 0 additions & 10 deletions .taplo.toml

This file was deleted.

5 changes: 5 additions & 0 deletions .tombi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
toml-version = "v1.1.0"

[format]
[format.rules]
indent-sub-tables = true
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ms-python.mypy-type-checker",
"ms-python.python",
"redhat.vscode-yaml",
"tamasfe.even-better-toml",
"yzhang.markdown-all-in-one"
"yzhang.markdown-all-in-one",
"tombi-toml.tombi"
]
}
7 changes: 4 additions & 3 deletions committed.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
## Configuration for committed
##
## See <https://github.com/crate-ci/committed/blob/master/docs/reference.md>

style = "conventional"

line_length = 80
merge_commit = false
no_fixup = false
line_length = 80
merge_commit = false
no_fixup = false
subject_capitalized = false

allowed_types = [
Expand Down
3 changes: 2 additions & 1 deletion docs/scripts/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#:schema https://www.schemastore.org/ruff.json

extend = "../../pyproject.toml"

[lint]
ignore = [
"INP001", # Forbid implicit namespaces
"INP001", # Forbid implicit namespaces
]
22 changes: 12 additions & 10 deletions examples/catalog/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#:schema https://www.schemastore.org/pyproject.toml

[project]
name = "pact-python-catalog"
name = "pact-python-catalog"
version = "1.0.0"

dependencies = [
Expand All @@ -15,15 +16,16 @@ requires-python = ">=3.10"
[dependency-groups]
test = ["pact-python", "pytest~=9.0", "uvicorn~=0.30"]

[tool.uv.sources]
pact-python = { path = "../../" }
[tool]
[tool.uv.sources]
pact-python = { path = "../../" }

[tool.ruff]
extend = "../../pyproject.toml"
[tool.ruff]
extend = "../../pyproject.toml"

[tool.pytest]
addopts = ["--import-mode=importlib"]
[tool.pytest]
addopts = ["--import-mode=importlib"]

log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
28 changes: 15 additions & 13 deletions examples/http/aiohttp_and_flask/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
#:schema https://www.schemastore.org/pyproject.json

[project]
name = "example-aiohttp-and-flask"

description = "Example of using an aiohttp client and Flask server with Pact Python"

dependencies = ["aiohttp~=3.0", "flask~=3.0", "typing-extensions~=4.0"]
version = "1.0.0"
requires-python = ">=3.10"
version = "1.0.0"
dependencies = ["aiohttp~=3.0", "flask~=3.0", "typing-extensions~=4.0"]

[dependency-groups]
test = ["pact-python", "pytest-asyncio~=1.0", "pytest~=9.0"]
test = ["pact-python", "pytest~=9.0", "pytest-asyncio~=1.0"]

[tool.uv.sources]
pact-python = { path = "../../../" }
[tool]
[tool.pytest]
addopts = ["--import-mode=importlib"]

[tool.ruff]
extend = "../../../pyproject.toml"
asyncio_default_fixture_loop_scope = "session"

[tool.pytest]
addopts = ["--import-mode=importlib"]
log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"

asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
extend = "../../../pyproject.toml"

log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
[tool.uv.sources]
pact-python = { path = "../../../" }
27 changes: 14 additions & 13 deletions examples/http/requests_and_fastapi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
#:schema https://www.schemastore.org/pyproject.json

[project]
name = "example-requests-and-fastapi"

description = "Example of using a requests client and FastAPI server with Pact Python"

dependencies = ["requests~=2.0", "fastapi~=0.0", "typing-extensions~=4.0"]
version = "1.0.0"
requires-python = ">=3.10"
version = "1.0.0"
dependencies = ["fastapi~=0.0", "requests~=2.0", "typing-extensions~=4.0"]

[dependency-groups]

test = ["pact-python", "pytest~=9.0", "uvicorn~=0.29"]

[tool.uv.sources]
pact-python = { path = "../../../" }
[tool]
[tool.pytest]
addopts = ["--import-mode=importlib"]

[tool.ruff]
extend = "../../../pyproject.toml"
asyncio_default_fixture_loop_scope = "session"

[tool.pytest]
addopts = ["--import-mode=importlib"]
log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"

asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
extend = "../../../pyproject.toml"

log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
[tool.uv.sources]
pact-python = { path = "../../../" }
25 changes: 13 additions & 12 deletions examples/http/service_consumer_provider/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
#:schema https://www.schemastore.org/pyproject.json

[project]
name = "example-service-consumer-provider"

description = "Example of a service acting as both a Pact consumer and provider"

dependencies = ["fastapi~=0.0", "requests~=2.0", "typing-extensions~=4.0"]
version = "1.0.0"
requires-python = ">=3.10"
version = "1.0.0"
dependencies = ["fastapi~=0.0", "requests~=2.0", "typing-extensions~=4.0"]

[dependency-groups]

test = ["pact-python", "pytest~=9.0", "uvicorn~=0.29"]

[tool.uv.sources]
pact-python = { path = "../../../" }
[tool]
[tool.pytest]
addopts = ["--import-mode=importlib"]

[tool.ruff]
extend = "../../../pyproject.toml"
log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"

[tool.pytest]
addopts = ["--import-mode=importlib"]
[tool.ruff]
extend = "../../../pyproject.toml"

log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
[tool.uv.sources]
pact-python = { path = "../../../" }
26 changes: 14 additions & 12 deletions examples/http/xml_example/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
#:schema https://www.schemastore.org/pyproject.json

[project]
name = "example-xml"

description = "Example of XML contract testing with Pact Python"

dependencies = ["requests~=2.0", "fastapi~=0.0", "typing-extensions~=4.0"]
version = "1.0.0"
requires-python = ">=3.10"
version = "1.0.0"
dependencies = ["fastapi~=0.0", "requests~=2.0", "typing-extensions~=4.0"]

[dependency-groups]
test = ["pact-python", "pytest~=9.0", "uvicorn~=0.29"]

[tool.uv.sources]
pact-python = { path = "../../../" }
[tool]
[tool.pytest]
addopts = ["--import-mode=importlib"]

[tool.ruff]
extend = "../../../pyproject.toml"
asyncio_default_fixture_loop_scope = "session"

[tool.pytest]
addopts = ["--import-mode=importlib"]
log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"

asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
extend = "../../../pyproject.toml"

log_date_format = "%H:%M:%S"
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
log_level = "NOTSET"
[tool.uv.sources]
pact-python = { path = "../../../" }
Loading
Loading