Skip to content

Commit 51d000c

Browse files
Merge branch 'main' into main
2 parents c3d789a + 1171814 commit 51d000c

File tree

7 files changed

+152
-3
lines changed

7 files changed

+152
-3
lines changed

.codespellignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mor
2+
tok
3+
fpan
4+
dpan
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2026 UCP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Conventional Commits"
16+
17+
on:
18+
pull_request:
19+
types:
20+
- opened
21+
- edited
22+
- synchronize
23+
24+
permissions:
25+
contents: read
26+
27+
jobs:
28+
main:
29+
permissions:
30+
pull-requests: read
31+
statuses: write
32+
name: Validate PR Title
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: semantic-pull-request
36+
uses: amannn/action-semantic-pull-request@v6
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
validateSingleCommit: false

.github/workflows/linter.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Lint
16+
17+
on:
18+
push:
19+
branches: [main]
20+
pull_request:
21+
branches: [main]
22+
23+
jobs:
24+
pre-commit:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.x'
31+
- uses: pre-commit/action@v3.0.1

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
.ruff_cache/
3+
__pycache__/
4+
.venv/
5+
*.py[cod]

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
exclude: '^(\.github/|\.vscode/|node_modules/).*|CODE_OF_CONDUCT\.md|CHANGELOG\.md'
16+
17+
repos:
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v6.0.0
20+
hooks:
21+
- id: trailing-whitespace
22+
- id: end-of-file-fixer
23+
- id: check-yaml
24+
args: [--unsafe]
25+
- id: check-json
26+
- id: check-added-large-files
27+
- id: check-shebang-scripts-are-executable
28+
- id: check-executables-have-shebangs
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.14.13
31+
hooks:
32+
- id: ruff
33+
args: [--fix, --exit-non-zero-on-fix, --ignore, "D,E501"]
34+
- id: ruff-format
35+
- repo: https://github.com/pre-commit/mirrors-prettier
36+
rev: v4.0.0-alpha.8
37+
hooks:
38+
- id: prettier
39+
files: \.(md|yaml|yml|json)$
40+
- repo: https://github.com/koalaman/shellcheck-precommit
41+
rev: v0.10.0
42+
hooks:
43+
- id: shellcheck
44+
- repo: https://github.com/codespell-project/codespell
45+
rev: v2.4.1
46+
hooks:
47+
- id: codespell
48+
args: ["-I", ".codespellignore"]

.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"trailingComma": "es5",
5+
"bracketSameLine": true,
6+
"overrides": [
7+
{
8+
"files": "*.md",
9+
"options": {
10+
"tabWidth": 4,
11+
"useTabs": false,
12+
"trailingComma": "es5",
13+
"endOfLine": "lf",
14+
"printWidth": 80,
15+
"proseWrap": "always"
16+
}
17+
}
18+
]
19+
}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
This repository contains the Python SDK for the
2828
[Universal Commerce Protocol (UCP)](https://ucp.dev). It provides Pydantic
29-
models for UCP schemas, making it easy to build UCP-compliant applications
30-
in Python.
29+
models for UCP schemas, making it easy to build UCP-compliant applications in
30+
Python.
3131

3232
## Installation
3333

@@ -69,7 +69,9 @@ The generated code is automatically formatted using `ruff`.
6969

7070
## Contributing
7171

72-
We welcome community contributions. See our [Contribution Guide](https://github.com/Universal-Commerce-Protocol/.github/blob/main/CONTRIBUTING.md) for details.
72+
We welcome community contributions. See our
73+
[Contribution Guide](https://github.com/Universal-Commerce-Protocol/.github/blob/main/CONTRIBUTING.md)
74+
for details.
7375

7476
## License
7577

0 commit comments

Comments
 (0)