From b9d769f93658dc442902eb844861ec983658e2a5 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Tue, 3 Jun 2025 14:36:05 -0700 Subject: [PATCH] Add missing copyright headers --- .github/dependabot.yaml | 16 ++++++++++++---- check/format-incremental | 13 +++++++++++++ check/mypy | 13 +++++++++++++ check/pylint | 13 +++++++++++++ check/pytest | 13 +++++++++++++ check/pytest-and-incremental-coverage | 13 +++++++++++++ dev_tools/conf/.coveragerc | 14 ++++++++++++++ dev_tools/conf/.pylintrc | 16 ++++++++++++++++ dev_tools/conf/mypy.ini | 14 ++++++++++++++ dev_tools/conf/pytest.ini | 14 ++++++++++++++ pyproject.toml | 14 ++++++++++++++ 11 files changed, 149 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index b4a813387..69c9f9a43 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,8 +1,16 @@ -# Summary: Dependabot config file for OpenFermion. +# Copyright 2025 Google LLC # -# By default, Dependabot labels all pull requests with label 'dependencies'. -# We use `dependency bug`, so have to configure Dependabot appropriately. -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. version: 2 updates: diff --git a/check/format-incremental b/check/format-incremental index b163cadd9..ae0419edb 100755 --- a/check/format-incremental +++ b/check/format-incremental @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. ################################################################################ # Formats python files that have been modified. diff --git a/check/mypy b/check/mypy index 614e7e820..f68acd866 100755 --- a/check/mypy +++ b/check/mypy @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. ################################################################################ # Runs mypy on the repository using a preconfigured mypy.ini file. diff --git a/check/pylint b/check/pylint index dd9199bcb..2a3aeb198 100755 --- a/check/pylint +++ b/check/pylint @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. ################################################################################ # Runs pylint on the repository using a preconfigured .pylintrc file. diff --git a/check/pytest b/check/pytest index fac6777b1..cda2a5eb3 100755 --- a/check/pytest +++ b/check/pytest @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. ################################################################################ # Runs pytest on the repository. diff --git a/check/pytest-and-incremental-coverage b/check/pytest-and-incremental-coverage index 837ae9a82..e3f63c091 100755 --- a/check/pytest-and-incremental-coverage +++ b/check/pytest-and-incremental-coverage @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. ################################################################################ # Finds changed uncovered lines. diff --git a/dev_tools/conf/.coveragerc b/dev_tools/conf/.coveragerc index f431403ee..26b48638e 100644 --- a/dev_tools/conf/.coveragerc +++ b/dev_tools/conf/.coveragerc @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [run] # Omit files outside the current working directory. # Note: this means coverage must be run from the openfermion repo root. diff --git a/dev_tools/conf/.pylintrc b/dev_tools/conf/.pylintrc index 2e9221223..2edf4ac51 100644 --- a/dev_tools/conf/.pylintrc +++ b/dev_tools/conf/.pylintrc @@ -1,5 +1,21 @@ +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Summary: config file for Pylint versions 3.0 and above. # See https://pylint.readthedocs.io/ for info about options available. +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [MAIN] diff --git a/dev_tools/conf/mypy.ini b/dev_tools/conf/mypy.ini index bb4150476..bd000aebc 100644 --- a/dev_tools/conf/mypy.ini +++ b/dev_tools/conf/mypy.ini @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [mypy] implicit_optional = True diff --git a/dev_tools/conf/pytest.ini b/dev_tools/conf/pytest.ini index e10825ae4..9e82e4172 100644 --- a/dev_tools/conf/pytest.ini +++ b/dev_tools/conf/pytest.ini @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [pytest] markers = slow: marks tests as slow (deselect with '-m "not slow"') diff --git a/pyproject.toml b/pyproject.toml index c9177da7b..a24bb0bb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# 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 +# +# https://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, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [tool.black] line-length = 100 target_version = ['py310', 'py311', 'py312', 'py313']