Skip to content
Open
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
25 changes: 11 additions & 14 deletions poe_tasks.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#:schema https://json.schemastore.org/partial-poe.json

[tasks.add-license-header]
help = "Add license header to all source files"
cmd = """
go run github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@v1.69.0
--ignore .github --ignore buf.yaml
--ignore buf.gen.yaml
--ignore test/conformance/nonconforming.yaml
--license-type apache
--copyright-holder "Buf Technologies, Inc."
--year-range "2023-2026"
"""

[tasks.bench]
help = "Run benchmarks"
cmd = "pytest --benchmark-enable --benchmark-only --benchmark-autosave"
Expand All @@ -36,7 +24,7 @@ sequence = [
"generate-cel",
"generate-protovalidate",
"generate-test",
"add-license-header",
"format-license-header",
"format-protos",
]

Expand All @@ -59,9 +47,13 @@ sequence = [
"format-python",
"format-protos",
"format-toml",
"add-license-header"
"format-license-header"
]

[tasks.format-license-header]
help = "Add/update license headers in source files"
cmd = "license-header"

[tasks.format-protos]
help = "Apply auto-formatting to protobuf files"
sequence = [
Expand All @@ -86,9 +78,14 @@ sequence = [
"lint-python",
"lint-protos",
"lint-toml",
"lint-license-header",
{ cmd = "uv lock --check" }
]

[tasks.lint-license-header]
help = "Check license headers in source files"
cmd = "license-header --check"

[tasks.lint-protos]
help = "Apply linting to protobuf files"
sequence = [
Expand Down
4 changes: 2 additions & 2 deletions proto/buf/validate/validate.proto
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2023-2026 Buf Technologies, Inc.
// Copyright (c) 2025-2026 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
5 changes: 2 additions & 3 deletions protovalidate/_gen/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions protovalidate/_gen/buf/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions protovalidate/_gen/buf/validate/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions protovalidate/_gen/buf/validate/validate_pb.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions protovalidate/internal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/internal/cel_field_presence.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/internal/extra_func.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/internal/legacy.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/internal/rules.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/internal/string_format.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/validator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dev = [
"buf-bin==1.71.0",
"fix-protobuf-imports==0.1.7",
"google-re2-stubs==0.1.1",
"license-header==0.0.1",
"poethepoet==0.48.0",
"pytest==9.1.1",
"pytest-benchmark==5.2.3",
Expand All @@ -65,6 +66,17 @@ build-backend = "hatchling.build"
source = "vcs"
raw-options = { fallback_version = "0.0.0" }

## License headers
[tool.licenseheader]
copyright-holder = "Buf Technologies, Inc."
year-range = "2025-2026"
ignore = [
".github",
"buf.yaml",
"buf.gen.yaml",
"test/conformance/nonconforming.yaml",
]

[tool.pytest]
addopts = [
"--benchmark-disable",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_cel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_protovalidate.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions test/conformance/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions test/conformance/runner.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions test/conformance/test_conformance.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2023-2026 Buf Technologies, Inc.
# Copyright (c) 2025-2026 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
5 changes: 2 additions & 3 deletions test/gen/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions test/gen/bench/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions test/gen/bench/v1/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading