diff --git a/check/pylint b/check/pylint index 2ae9daf19ee..517c20e1aed 100755 --- a/check/pylint +++ b/check/pylint @@ -13,4 +13,5 @@ cd "$(git rev-parse --show-toplevel)" CIRQ_MODULES=$(env PYTHONPATH=. python dev_tools/modules.py list --mode package-path) -pylint --rcfile=dev_tools/conf/.pylintrc $@ $CIRQ_MODULES dev_tools examples +# Add dev_tools to $PYTHONPATH so that pylint can find custom checkers +env PYTHONPATH=dev_tools pylint --rcfile=dev_tools/conf/.pylintrc $@ $CIRQ_MODULES dev_tools examples diff --git a/check/pylint-changed-files b/check/pylint-changed-files index 706add00b9b..d98f0b6ba0e 100755 --- a/check/pylint-changed-files +++ b/check/pylint-changed-files @@ -64,5 +64,5 @@ echo "Found ${num_changed} lintable files associated with changes." >&2 if [ "${num_changed}" -eq 0 ]; then exit 0 fi -pylint --rcfile=dev_tools/conf/.pylintrc ${changed[@]} +env PYTHONPATH=dev_tools pylint --rcfile=dev_tools/conf/.pylintrc ${changed[@]} diff --git a/cirq-aqt/cirq_aqt/_version_test.py b/cirq-aqt/cirq_aqt/_version_test.py index 3e50d9a8a9f..0102c9faad9 100644 --- a/cirq-aqt/cirq_aqt/_version_test.py +++ b/cirq-aqt/cirq_aqt/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_aqt diff --git a/cirq-core/cirq/_version_test.py b/cirq-core/cirq/_version_test.py index c4add36e435..c6e13c46b3b 100644 --- a/cirq-core/cirq/_version_test.py +++ b/cirq-core/cirq/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq diff --git a/cirq-core/cirq/circuits/circuit_dag.py b/cirq-core/cirq/circuits/circuit_dag.py index 7dbc3536f2a..33250aaeec6 100644 --- a/cirq-core/cirq/circuits/circuit_dag.py +++ b/cirq-core/cirq/circuits/circuit_dag.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/acquaintance/__init__.py b/cirq-core/cirq/contrib/acquaintance/__init__.py index 23b2519c912..e63c7ab4ab4 100644 --- a/cirq-core/cirq/contrib/acquaintance/__init__.py +++ b/cirq-core/cirq/contrib/acquaintance/__init__.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/json.py b/cirq-core/cirq/contrib/json.py index 97cccd8bc91..79d1a9e4ac6 100644 --- a/cirq-core/cirq/contrib/json.py +++ b/cirq-core/cirq/contrib/json.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Contains functions for adding JSON serialization and de-serialization for classes in Contrib. diff --git a/cirq-core/cirq/contrib/json_test.py b/cirq-core/cirq/contrib/json_test.py index b3c2be924b9..32e5a897011 100644 --- a/cirq-core/cirq/contrib/json_test.py +++ b/cirq-core/cirq/contrib/json_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq from cirq.contrib.quantum_volume import QuantumVolumeResult from cirq.testing import assert_json_roundtrip_works diff --git a/cirq-core/cirq/contrib/paulistring/clifford_optimize.py b/cirq-core/cirq/contrib/paulistring/clifford_optimize.py index fac21c8fab0..881eea10081 100644 --- a/cirq-core/cirq/contrib/paulistring/clifford_optimize.py +++ b/cirq-core/cirq/contrib/paulistring/clifford_optimize.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/convert_gate_set.py b/cirq-core/cirq/contrib/paulistring/convert_gate_set.py index fb46c6a2425..8d2fc523f1b 100644 --- a/cirq-core/cirq/contrib/paulistring/convert_gate_set.py +++ b/cirq-core/cirq/contrib/paulistring/convert_gate_set.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/optimize.py b/cirq-core/cirq/contrib/paulistring/optimize.py index b6884967d60..6ae670a0ba4 100644 --- a/cirq-core/cirq/contrib/paulistring/optimize.py +++ b/cirq-core/cirq/contrib/paulistring/optimize.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/pauli_string_dag.py b/cirq-core/cirq/contrib/paulistring/pauli_string_dag.py index 5981c0ab2f8..1196431b1c9 100644 --- a/cirq-core/cirq/contrib/paulistring/pauli_string_dag.py +++ b/cirq-core/cirq/contrib/paulistring/pauli_string_dag.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/pauli_string_optimize.py b/cirq-core/cirq/contrib/paulistring/pauli_string_optimize.py index 8060d3a6c12..9223f900c07 100644 --- a/cirq-core/cirq/contrib/paulistring/pauli_string_optimize.py +++ b/cirq-core/cirq/contrib/paulistring/pauli_string_optimize.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/recombine.py b/cirq-core/cirq/contrib/paulistring/recombine.py index 723202d4694..72ac1ec0b5d 100644 --- a/cirq-core/cirq/contrib/paulistring/recombine.py +++ b/cirq-core/cirq/contrib/paulistring/recombine.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/paulistring/separate.py b/cirq-core/cirq/contrib/paulistring/separate.py index 290cf9f005b..bdaac30d3c1 100644 --- a/cirq-core/cirq/contrib/paulistring/separate.py +++ b/cirq-core/cirq/contrib/paulistring/separate.py @@ -1,4 +1,4 @@ -# Copyright 2018 The ops Developers +# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cirq-core/cirq/contrib/qasm_import/_lexer_test.py b/cirq-core/cirq/contrib/qasm_import/_lexer_test.py index 7039df7cbd0..b34b7e6fe70 100644 --- a/cirq-core/cirq/contrib/qasm_import/_lexer_test.py +++ b/cirq-core/cirq/contrib/qasm_import/_lexer_test.py @@ -1,3 +1,9 @@ +# Copyright 2021 The Cirq Developers +# +# 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 diff --git a/cirq-core/cirq/contrib/qasm_import/_parser_test.py b/cirq-core/cirq/contrib/qasm_import/_parser_test.py index d57e9e1774a..d13d0ee991f 100644 --- a/cirq-core/cirq/contrib/qasm_import/_parser_test.py +++ b/cirq-core/cirq/contrib/qasm_import/_parser_test.py @@ -1,3 +1,9 @@ +# Copyright 2021 The Cirq Developers +# +# 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 diff --git a/cirq-core/cirq/contrib/qcircuit/__init__.py b/cirq-core/cirq/contrib/qcircuit/__init__.py index c01091cebbd..67d8d16d110 100644 --- a/cirq-core/cirq/contrib/qcircuit/__init__.py +++ b/cirq-core/cirq/contrib/qcircuit/__init__.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/quantum_volume/quantum_volume.py b/cirq-core/cirq/contrib/quantum_volume/quantum_volume.py index 1e1c5c736ba..b7ce3925e42 100644 --- a/cirq-core/cirq/contrib/quantum_volume/quantum_volume.py +++ b/cirq-core/cirq/contrib/quantum_volume/quantum_volume.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Utility functions to run the Quantum Volume benchmark defined by IBM in https://arxiv.org/abs/1811.12926. """ diff --git a/cirq-core/cirq/contrib/quantum_volume/quantum_volume_test.py b/cirq-core/cirq/contrib/quantum_volume/quantum_volume_test.py index 420fa635638..faa13046c40 100644 --- a/cirq-core/cirq/contrib/quantum_volume/quantum_volume_test.py +++ b/cirq-core/cirq/contrib/quantum_volume/quantum_volume_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Tests for the Quantum Volume utilities.""" from unittest.mock import Mock, MagicMock diff --git a/cirq-core/cirq/contrib/quimb/__init__.py b/cirq-core/cirq/contrib/quimb/__init__.py index 91e1626854f..d7dcc4991cc 100644 --- a/cirq-core/cirq/contrib/quimb/__init__.py +++ b/cirq-core/cirq/contrib/quimb/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.contrib.quimb.state_vector import ( circuit_for_expectation_value, tensor_expectation_value, diff --git a/cirq-core/cirq/contrib/quimb/density_matrix.py b/cirq-core/cirq/contrib/quimb/density_matrix.py index 3555ca2eea3..eed902785fd 100644 --- a/cirq-core/cirq/contrib/quimb/density_matrix.py +++ b/cirq-core/cirq/contrib/quimb/density_matrix.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from functools import lru_cache from typing import Sequence, Dict, Union, Tuple, List, Optional diff --git a/cirq-core/cirq/contrib/quimb/density_matrix_test.py b/cirq-core/cirq/contrib/quimb/density_matrix_test.py index d4d03cd75d3..7aa3da202c6 100644 --- a/cirq-core/cirq/contrib/quimb/density_matrix_test.py +++ b/cirq-core/cirq/contrib/quimb/density_matrix_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import cirq diff --git a/cirq-core/cirq/contrib/quimb/grid_circuits.py b/cirq-core/cirq/contrib/quimb/grid_circuits.py index 5494a89963c..69cf487d482 100644 --- a/cirq-core/cirq/contrib/quimb/grid_circuits.py +++ b/cirq-core/cirq/contrib/quimb/grid_circuits.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Optional, Iterator import networkx as nx diff --git a/cirq-core/cirq/contrib/quimb/grid_circuits_test.py b/cirq-core/cirq/contrib/quimb/grid_circuits_test.py index cc8565b7e79..730098c35f0 100644 --- a/cirq-core/cirq/contrib/quimb/grid_circuits_test.py +++ b/cirq-core/cirq/contrib/quimb/grid_circuits_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import networkx as nx import numpy as np import pytest diff --git a/cirq-core/cirq/contrib/quimb/mps_simulator_test.py b/cirq-core/cirq/contrib/quimb/mps_simulator_test.py index 025b931944d..e9d04f100f1 100644 --- a/cirq-core/cirq/contrib/quimb/mps_simulator_test.py +++ b/cirq-core/cirq/contrib/quimb/mps_simulator_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import math from unittest import mock diff --git a/cirq-core/cirq/contrib/quimb/state_vector.py b/cirq-core/cirq/contrib/quimb/state_vector.py index 64933a68f29..48357cbd906 100644 --- a/cirq-core/cirq/contrib/quimb/state_vector.py +++ b/cirq-core/cirq/contrib/quimb/state_vector.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import warnings from typing import Sequence, Union, List, Tuple, Dict, Optional diff --git a/cirq-core/cirq/contrib/quimb/state_vector_test.py b/cirq-core/cirq/contrib/quimb/state_vector_test.py index 622c3826756..6d7f97f0cbf 100644 --- a/cirq-core/cirq/contrib/quimb/state_vector_test.py +++ b/cirq-core/cirq/contrib/quimb/state_vector_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import functools import operator diff --git a/cirq-core/cirq/contrib/quirk/__init__.py b/cirq-core/cirq/contrib/quirk/__init__.py index defa965c3e3..2a68770ac52 100644 --- a/cirq-core/cirq/contrib/quirk/__init__.py +++ b/cirq-core/cirq/contrib/quirk/__init__.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/quirk/export_to_quirk.py b/cirq-core/cirq/contrib/quirk/export_to_quirk.py index 68dd6605673..b0558c58ace 100644 --- a/cirq-core/cirq/contrib/quirk/export_to_quirk.py +++ b/cirq-core/cirq/contrib/quirk/export_to_quirk.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/quirk/linearize_circuit.py b/cirq-core/cirq/contrib/quirk/linearize_circuit.py index 1afc1ee4228..5fb1a6ed6ff 100644 --- a/cirq-core/cirq/contrib/quirk/linearize_circuit.py +++ b/cirq-core/cirq/contrib/quirk/linearize_circuit.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/quirk/quirk_gate.py b/cirq-core/cirq/contrib/quirk/quirk_gate.py index d0132f95443..eeef0daa379 100644 --- a/cirq-core/cirq/contrib/quirk/quirk_gate.py +++ b/cirq-core/cirq/contrib/quirk/quirk_gate.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/contrib/svg/__init__.py b/cirq-core/cirq/contrib/svg/__init__.py index c7ff16dfa48..07f39815c97 100644 --- a/cirq-core/cirq/contrib/svg/__init__.py +++ b/cirq-core/cirq/contrib/svg/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.contrib.svg.svg import ( SVGCircuit, circuit_to_svg, diff --git a/cirq-core/cirq/contrib/svg/svg.py b/cirq-core/cirq/contrib/svg/svg.py index e9fe1465904..d7fda794636 100644 --- a/cirq-core/cirq/contrib/svg/svg.py +++ b/cirq-core/cirq/contrib/svg/svg.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import TYPE_CHECKING, List, Tuple, cast, Dict import matplotlib.textpath diff --git a/cirq-core/cirq/contrib/svg/svg_test.py b/cirq-core/cirq/contrib/svg/svg_test.py index 4f2ea1bfc67..23acc5c57ee 100644 --- a/cirq-core/cirq/contrib/svg/svg_test.py +++ b/cirq-core/cirq/contrib/svg/svg_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest import numpy as np diff --git a/cirq-core/cirq/devices/device_test.py b/cirq-core/cirq/devices/device_test.py index 51c9da5b741..f730492b5e3 100644 --- a/cirq-core/cirq/devices/device_test.py +++ b/cirq-core/cirq/devices/device_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest import cirq diff --git a/cirq-core/cirq/devices/line_qubit.py b/cirq-core/cirq/devices/line_qubit.py index c6eec2ae344..26820b2cb8d 100644 --- a/cirq-core/cirq/devices/line_qubit.py +++ b/cirq-core/cirq/devices/line_qubit.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/devices/line_qubit_test.py b/cirq-core/cirq/devices/line_qubit_test.py index 8a4e9de0b5f..30499b4154f 100644 --- a/cirq-core/cirq/devices/line_qubit_test.py +++ b/cirq-core/cirq/devices/line_qubit_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/devices/noise_properties.py b/cirq-core/cirq/devices/noise_properties.py index 29e54ac5536..d2d3a39944c 100644 --- a/cirq-core/cirq/devices/noise_properties.py +++ b/cirq-core/cirq/devices/noise_properties.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import warnings from typing import Sequence, TYPE_CHECKING, List from itertools import product diff --git a/cirq-core/cirq/devices/noise_properties_test.py b/cirq-core/cirq/devices/noise_properties_test.py index 2499a97e426..eea1ed4d8d8 100644 --- a/cirq-core/cirq/devices/noise_properties_test.py +++ b/cirq-core/cirq/devices/noise_properties_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest import cirq from cirq.testing import assert_equivalent_op_tree diff --git a/cirq-core/cirq/experiments/grid_parallel_two_qubit_xeb_test.py b/cirq-core/cirq/experiments/grid_parallel_two_qubit_xeb_test.py index 23d13382ce2..92db8bf13f9 100644 --- a/cirq-core/cirq/experiments/grid_parallel_two_qubit_xeb_test.py +++ b/cirq-core/cirq/experiments/grid_parallel_two_qubit_xeb_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import os import numpy as np import cirq diff --git a/cirq-core/cirq/interop/__init__.py b/cirq-core/cirq/interop/__init__.py index 8c17ba51928..7b34c17466d 100644 --- a/cirq-core/cirq/interop/__init__.py +++ b/cirq-core/cirq/interop/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Package containing code for interoperating with other quantum software.""" from cirq.interop.quirk import ( diff --git a/cirq-core/cirq/interop/quirk/__init__.py b/cirq-core/cirq/interop/quirk/__init__.py index 76f7ded617d..6b8fab56626 100644 --- a/cirq-core/cirq/interop/quirk/__init__.py +++ b/cirq-core/cirq/interop/quirk/__init__.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/__init__.py b/cirq-core/cirq/interop/quirk/cells/__init__.py index a5c28edc783..bd10f94f820 100644 --- a/cirq-core/cirq/interop/quirk/cells/__init__.py +++ b/cirq-core/cirq/interop/quirk/cells/__init__.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/all_cells.py b/cirq-core/cirq/interop/quirk/cells/all_cells.py index 5eb5b78acdd..e4878552ff8 100644 --- a/cirq-core/cirq/interop/quirk/cells/all_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/all_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/arithmetic_cells.py b/cirq-core/cirq/interop/quirk/cells/arithmetic_cells.py index fd74a36b73c..349a452e6ae 100644 --- a/cirq-core/cirq/interop/quirk/cells/arithmetic_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/arithmetic_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/arithmetic_cells_test.py b/cirq-core/cirq/interop/quirk/cells/arithmetic_cells_test.py index 704d6d996f2..12dd482bd20 100644 --- a/cirq-core/cirq/interop/quirk/cells/arithmetic_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/arithmetic_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/cell.py b/cirq-core/cirq/interop/quirk/cells/cell.py index 1e24ed6e65c..64b8d93b317 100644 --- a/cirq-core/cirq/interop/quirk/cells/cell.py +++ b/cirq-core/cirq/interop/quirk/cells/cell.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/cell_test.py b/cirq-core/cirq/interop/quirk/cells/cell_test.py index 9e08a87b6aa..bf8b292a161 100644 --- a/cirq-core/cirq/interop/quirk/cells/cell_test.py +++ b/cirq-core/cirq/interop/quirk/cells/cell_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/composite_cell.py b/cirq-core/cirq/interop/quirk/cells/composite_cell.py index 1e7e837fcdf..c204ffb8aba 100644 --- a/cirq-core/cirq/interop/quirk/cells/composite_cell.py +++ b/cirq-core/cirq/interop/quirk/cells/composite_cell.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/composite_cell_test.py b/cirq-core/cirq/interop/quirk/cells/composite_cell_test.py index e3a880c26c3..58b249d1630 100644 --- a/cirq-core/cirq/interop/quirk/cells/composite_cell_test.py +++ b/cirq-core/cirq/interop/quirk/cells/composite_cell_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/control_cells.py b/cirq-core/cirq/interop/quirk/cells/control_cells.py index d014d71804b..93d11e44ab6 100644 --- a/cirq-core/cirq/interop/quirk/cells/control_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/control_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/control_cells_test.py b/cirq-core/cirq/interop/quirk/cells/control_cells_test.py index 78233252847..4a1ba069706 100644 --- a/cirq-core/cirq/interop/quirk/cells/control_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/control_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/frequency_space_cells.py b/cirq-core/cirq/interop/quirk/cells/frequency_space_cells.py index 230fe825416..ecd7c93feb3 100644 --- a/cirq-core/cirq/interop/quirk/cells/frequency_space_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/frequency_space_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/frequency_space_cells_test.py b/cirq-core/cirq/interop/quirk/cells/frequency_space_cells_test.py index 941fd0ea1a5..6533849b7da 100644 --- a/cirq-core/cirq/interop/quirk/cells/frequency_space_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/frequency_space_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/ignored_cells.py b/cirq-core/cirq/interop/quirk/cells/ignored_cells.py index 4ce7ab3ef1f..3b7ff444283 100644 --- a/cirq-core/cirq/interop/quirk/cells/ignored_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/ignored_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/ignored_cells_test.py b/cirq-core/cirq/interop/quirk/cells/ignored_cells_test.py index 0e25203b8c8..0fbd6d00212 100644 --- a/cirq-core/cirq/interop/quirk/cells/ignored_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/ignored_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/input_cells.py b/cirq-core/cirq/interop/quirk/cells/input_cells.py index 6da601a9ff1..ae61a4209f9 100644 --- a/cirq-core/cirq/interop/quirk/cells/input_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/input_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/input_cells_test.py b/cirq-core/cirq/interop/quirk/cells/input_cells_test.py index 3bcf3aebd3f..e54703ebbdd 100644 --- a/cirq-core/cirq/interop/quirk/cells/input_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/input_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/input_rotation_cells.py b/cirq-core/cirq/interop/quirk/cells/input_rotation_cells.py index 53a8c2bd41d..476fdf9899d 100644 --- a/cirq-core/cirq/interop/quirk/cells/input_rotation_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/input_rotation_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/input_rotation_cells_test.py b/cirq-core/cirq/interop/quirk/cells/input_rotation_cells_test.py index 226e595ac85..3f93a2c7b8d 100644 --- a/cirq-core/cirq/interop/quirk/cells/input_rotation_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/input_rotation_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/measurement_cells.py b/cirq-core/cirq/interop/quirk/cells/measurement_cells.py index 538677db6de..1ccc668de55 100644 --- a/cirq-core/cirq/interop/quirk/cells/measurement_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/measurement_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/measurement_cells_test.py b/cirq-core/cirq/interop/quirk/cells/measurement_cells_test.py index a0e76e6a793..888467b9345 100644 --- a/cirq-core/cirq/interop/quirk/cells/measurement_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/measurement_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/parse.py b/cirq-core/cirq/interop/quirk/cells/parse.py index ceebcecd98c..a09cc0e50c4 100644 --- a/cirq-core/cirq/interop/quirk/cells/parse.py +++ b/cirq-core/cirq/interop/quirk/cells/parse.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/parse_test.py b/cirq-core/cirq/interop/quirk/cells/parse_test.py index 87ed82f5ca0..0a3cbc332dc 100644 --- a/cirq-core/cirq/interop/quirk/cells/parse_test.py +++ b/cirq-core/cirq/interop/quirk/cells/parse_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells.py b/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells.py index a6798a0dfd1..a1bb08af5ed 100644 --- a/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells_test.py b/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells_test.py index 465c3851fad..10e86ecb0d9 100644 --- a/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/qubit_permutation_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/scalar_cells.py b/cirq-core/cirq/interop/quirk/cells/scalar_cells.py index b9e4bc47274..0d7b941e11f 100644 --- a/cirq-core/cirq/interop/quirk/cells/scalar_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/scalar_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/scalar_cells_test.py b/cirq-core/cirq/interop/quirk/cells/scalar_cells_test.py index 74fa6faa263..f8812c53368 100644 --- a/cirq-core/cirq/interop/quirk/cells/scalar_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/scalar_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells.py b/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells.py index 78f86a57376..73132382a22 100644 --- a/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells_test.py b/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells_test.py index 8be9a668d52..108aee0b4a4 100644 --- a/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/single_qubit_rotation_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/swap_cell.py b/cirq-core/cirq/interop/quirk/cells/swap_cell.py index 7742965c88b..fa35e5a3c28 100644 --- a/cirq-core/cirq/interop/quirk/cells/swap_cell.py +++ b/cirq-core/cirq/interop/quirk/cells/swap_cell.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/swap_cell_test.py b/cirq-core/cirq/interop/quirk/cells/swap_cell_test.py index 3f05af2418c..5042e03a589 100644 --- a/cirq-core/cirq/interop/quirk/cells/swap_cell_test.py +++ b/cirq-core/cirq/interop/quirk/cells/swap_cell_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/testing.py b/cirq-core/cirq/interop/quirk/cells/testing.py index 04621860648..51183f944ab 100644 --- a/cirq-core/cirq/interop/quirk/cells/testing.py +++ b/cirq-core/cirq/interop/quirk/cells/testing.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/testing_test.py b/cirq-core/cirq/interop/quirk/cells/testing_test.py index edb5c681e8f..840e8be2345 100644 --- a/cirq-core/cirq/interop/quirk/cells/testing_test.py +++ b/cirq-core/cirq/interop/quirk/cells/testing_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/unsupported_cells.py b/cirq-core/cirq/interop/quirk/cells/unsupported_cells.py index 95e63973e0b..209c58a4495 100644 --- a/cirq-core/cirq/interop/quirk/cells/unsupported_cells.py +++ b/cirq-core/cirq/interop/quirk/cells/unsupported_cells.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/cells/unsupported_cells_test.py b/cirq-core/cirq/interop/quirk/cells/unsupported_cells_test.py index 3278975d97e..9ae37182c4c 100644 --- a/cirq-core/cirq/interop/quirk/cells/unsupported_cells_test.py +++ b/cirq-core/cirq/interop/quirk/cells/unsupported_cells_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/url_to_circuit.py b/cirq-core/cirq/interop/quirk/url_to_circuit.py index 6089a2f1549..427965c1571 100644 --- a/cirq-core/cirq/interop/quirk/url_to_circuit.py +++ b/cirq-core/cirq/interop/quirk/url_to_circuit.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/interop/quirk/url_to_circuit_test.py b/cirq-core/cirq/interop/quirk/url_to_circuit_test.py index 996a5d1225e..1762dd18cb0 100644 --- a/cirq-core/cirq/interop/quirk/url_to_circuit_test.py +++ b/cirq-core/cirq/interop/quirk/url_to_circuit_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/ion/ion_decomposition_test.py b/cirq-core/cirq/ion/ion_decomposition_test.py index c2ddbff4738..64febcb9c2b 100644 --- a/cirq-core/cirq/ion/ion_decomposition_test.py +++ b/cirq-core/cirq/ion/ion_decomposition_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import random import numpy as np diff --git a/cirq-core/cirq/ops/arithmetic_operation.py b/cirq-core/cirq/ops/arithmetic_operation.py index ba5205c6fab..67459136c43 100644 --- a/cirq-core/cirq/ops/arithmetic_operation.py +++ b/cirq-core/cirq/ops/arithmetic_operation.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/ops/fourier_transform.py b/cirq-core/cirq/ops/fourier_transform.py index 8b1fe61f7e3..66ee7d698a9 100644 --- a/cirq-core/cirq/ops/fourier_transform.py +++ b/cirq-core/cirq/ops/fourier_transform.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/ops/fourier_transform_test.py b/cirq-core/cirq/ops/fourier_transform_test.py index 138fb75185b..e175b199655 100644 --- a/cirq-core/cirq/ops/fourier_transform_test.py +++ b/cirq-core/cirq/ops/fourier_transform_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-core/cirq/ops/kraus_channel.py b/cirq-core/cirq/ops/kraus_channel.py index 103ea38f786..a82cedb3679 100644 --- a/cirq-core/cirq/ops/kraus_channel.py +++ b/cirq-core/cirq/ops/kraus_channel.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Any, Dict, Iterable, Tuple, Union import numpy as np diff --git a/cirq-core/cirq/ops/kraus_channel_test.py b/cirq-core/cirq/ops/kraus_channel_test.py index d8e820ea1e5..0e6164f19b7 100644 --- a/cirq-core/cirq/ops/kraus_channel_test.py +++ b/cirq-core/cirq/ops/kraus_channel_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq import numpy as np import pytest diff --git a/cirq-core/cirq/ops/mixed_unitary_channel.py b/cirq-core/cirq/ops/mixed_unitary_channel.py index 18e09ddfcd4..bab749f97e9 100644 --- a/cirq-core/cirq/ops/mixed_unitary_channel.py +++ b/cirq-core/cirq/ops/mixed_unitary_channel.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Any, Dict, Iterable, Tuple, Union import numpy as np diff --git a/cirq-core/cirq/ops/mixed_unitary_channel_test.py b/cirq-core/cirq/ops/mixed_unitary_channel_test.py index 5a00ba991bc..03b671a3b49 100644 --- a/cirq-core/cirq/ops/mixed_unitary_channel_test.py +++ b/cirq-core/cirq/ops/mixed_unitary_channel_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq import numpy as np import pytest diff --git a/cirq-core/cirq/ops/parity_gates.py b/cirq-core/cirq/ops/parity_gates.py index eb2b45ba6f3..34a8166754a 100644 --- a/cirq-core/cirq/ops/parity_gates.py +++ b/cirq-core/cirq/ops/parity_gates.py @@ -1,6 +1,6 @@ # Copyright 2018 The Cirq Developers # -# Licensed under the Apache License, Version 2.0 (the "License");l +# 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 # diff --git a/cirq-core/cirq/ops/phased_x_z_gate.py b/cirq-core/cirq/ops/phased_x_z_gate.py index a8b7d768b0e..a36722528f4 100644 --- a/cirq-core/cirq/ops/phased_x_z_gate.py +++ b/cirq-core/cirq/ops/phased_x_z_gate.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numbers from typing import AbstractSet, Any, Dict, Optional, Sequence, Tuple, TYPE_CHECKING, Union diff --git a/cirq-core/cirq/ops/phased_x_z_gate_test.py b/cirq-core/cirq/ops/phased_x_z_gate_test.py index b7b764122f9..991d5457187 100644 --- a/cirq-core/cirq/ops/phased_x_z_gate_test.py +++ b/cirq-core/cirq/ops/phased_x_z_gate_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import random import numpy as np diff --git a/cirq-core/cirq/ops/projector.py b/cirq-core/cirq/ops/projector.py index c11a14fbc70..e42affa426c 100644 --- a/cirq-core/cirq/ops/projector.py +++ b/cirq-core/cirq/ops/projector.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools from typing import ( Any, diff --git a/cirq-core/cirq/ops/projector_test.py b/cirq-core/cirq/ops/projector_test.py index c6a62178d93..d67e671481e 100644 --- a/cirq-core/cirq/ops/projector_test.py +++ b/cirq-core/cirq/ops/projector_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import pytest diff --git a/cirq-core/cirq/ops/qubit_order_test.py b/cirq-core/cirq/ops/qubit_order_test.py index 91a2eeb5b6b..2bb5598d705 100644 --- a/cirq-core/cirq/ops/qubit_order_test.py +++ b/cirq-core/cirq/ops/qubit_order_test.py @@ -1,4 +1,4 @@ -# Copyright 2018 The Cirq Developers +# Copyright 2021 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -7,7 +7,7 @@ # 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" qubit_order, +# 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. diff --git a/cirq-core/cirq/optimizers/cphase_to_fsim.py b/cirq-core/cirq/optimizers/cphase_to_fsim.py index 8f00960040e..7850804eb20 100644 --- a/cirq-core/cirq/optimizers/cphase_to_fsim.py +++ b/cirq-core/cirq/optimizers/cphase_to_fsim.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Optional, Sequence, Tuple, TYPE_CHECKING import numpy as np diff --git a/cirq-core/cirq/optimizers/cphase_to_fsim_test.py b/cirq-core/cirq/optimizers/cphase_to_fsim_test.py index 13f1f750aa8..f8d1c813fc1 100644 --- a/cirq-core/cirq/optimizers/cphase_to_fsim_test.py +++ b/cirq-core/cirq/optimizers/cphase_to_fsim_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import List, Sequence, Tuple import itertools diff --git a/cirq-core/cirq/optimizers/two_qubit_to_fsim.py b/cirq-core/cirq/optimizers/two_qubit_to_fsim.py index c706aa30599..45ac8becbbb 100644 --- a/cirq-core/cirq/optimizers/two_qubit_to_fsim.py +++ b/cirq-core/cirq/optimizers/two_qubit_to_fsim.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import ( Sequence, Union, diff --git a/cirq-core/cirq/optimizers/two_qubit_to_fsim_test.py b/cirq-core/cirq/optimizers/two_qubit_to_fsim_test.py index f53a9f482b0..3094ff4719c 100644 --- a/cirq-core/cirq/optimizers/two_qubit_to_fsim_test.py +++ b/cirq-core/cirq/optimizers/two_qubit_to_fsim_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import random from typing import Any diff --git a/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap.py b/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap.py index ae9d0e7afb7..3a778656957 100644 --- a/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap.py +++ b/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Utility methods for decomposing two-qubit unitaries into sqrt-iSWAP gates. References: diff --git a/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap_test.py b/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap_test.py index a3cd566be86..8ebe758662e 100644 --- a/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap_test.py +++ b/cirq-core/cirq/optimizers/two_qubit_to_sqrt_iswap_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import numpy as np import pytest diff --git a/cirq-core/cirq/sim/clifford/__init__.py b/cirq-core/cirq/sim/clifford/__init__.py index 8d1ad75210d..2f8a2e5a310 100644 --- a/cirq-core/cirq/sim/clifford/__init__.py +++ b/cirq-core/cirq/sim/clifford/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.sim.clifford.act_on_clifford_tableau_args import ( ActOnCliffordTableauArgs, ) diff --git a/cirq-core/cirq/sim/clifford/clifford_simulator_test.py b/cirq-core/cirq/sim/clifford/clifford_simulator_test.py index cb94c4650e3..333914198b9 100644 --- a/cirq-core/cirq/sim/clifford/clifford_simulator_test.py +++ b/cirq-core/cirq/sim/clifford/clifford_simulator_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools from unittest import mock diff --git a/cirq-core/cirq/testing/_compat_test_data/__init__.py b/cirq-core/cirq/testing/_compat_test_data/__init__.py index 7ee4ba27c80..ef78a025b55 100644 --- a/cirq-core/cirq/testing/_compat_test_data/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Test module for deprecation testing. See cirq/_compat_test.py for the tests. This module contains example deprecations for modules. diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/__init__.py index 21669cd786c..5c2c9cd80b9 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """module_a for module deprecation tests""" from logging import info diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/dupe/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/dupe/__init__.py index b9687fc7625..333b01aa037 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/dupe/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/dupe/__init__.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice DUPE_CONSTANT = False diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/__init__.py index 594fd3f0620..5e8cd1f0aeb 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.testing._compat_test_data.module_a.module_b import module_c MODULE_B_ATTRIBUTE = "module_b" diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/module_c/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/module_c/__init__.py index a4cf89966bb..e980a125a97 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/module_c/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/module_b/module_c/__init__.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice MODULE_C_ATTRIBUTE = "module_c" diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/__init__.py index 581203ecca1..7c0aad40b55 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/__init__.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.testing._compat_test_data.module_a.sub.subsub import dupe diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/__init__.py b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/__init__.py index 054a48de7b7..6a8f2b33266 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/__init__.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq.testing._compat_test_data.module_a.sub.subsub.dupe import DUPE_CONSTANT diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/dupe.py b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/dupe.py index e3b2913037f..736bae6fd08 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/dupe.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/sub/subsub/dupe.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice DUPE_CONSTANT = True diff --git a/cirq-core/cirq/testing/_compat_test_data/module_a/types.py b/cirq-core/cirq/testing/_compat_test_data/module_a/types.py index ec7b1e47055..4e093741f16 100644 --- a/cirq-core/cirq/testing/_compat_test_data/module_a/types.py +++ b/cirq-core/cirq/testing/_compat_test_data/module_a/types.py @@ -1,2 +1,3 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice class SampleType: pass diff --git a/cirq-core/cirq/testing/_compat_test_data/repeated/cirq/testing/_compat_test_data/repeated_child/child/__init__.py b/cirq-core/cirq/testing/_compat_test_data/repeated/cirq/testing/_compat_test_data/repeated_child/child/__init__.py index 0b4ee6e670c..5de965f3f57 100644 --- a/cirq-core/cirq/testing/_compat_test_data/repeated/cirq/testing/_compat_test_data/repeated_child/child/__init__.py +++ b/cirq-core/cirq/testing/_compat_test_data/repeated/cirq/testing/_compat_test_data/repeated_child/child/__init__.py @@ -1 +1,2 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice CHILD_ATTRIBUTE = "child" diff --git a/cirq-core/cirq/value/product_state.py b/cirq-core/cirq/value/product_state.py index 09c395ed372..ba7575ee7eb 100644 --- a/cirq-core/cirq/value/product_state.py +++ b/cirq-core/cirq/value/product_state.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/value/product_state_test.py b/cirq-core/cirq/value/product_state_test.py index c380a293e2d..ebc77e3f0e2 100644 --- a/cirq-core/cirq/value/product_state_test.py +++ b/cirq-core/cirq/value/product_state_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import pytest diff --git a/cirq-core/cirq/work/observable_grouping.py b/cirq-core/cirq/work/observable_grouping.py index 74f8e392477..8f7fecd7385 100644 --- a/cirq-core/cirq/work/observable_grouping.py +++ b/cirq-core/cirq/work/observable_grouping.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_grouping_test.py b/cirq-core/cirq/work/observable_grouping_test.py index 2688eb10dc0..394687480e2 100644 --- a/cirq-core/cirq/work/observable_grouping_test.py +++ b/cirq-core/cirq/work/observable_grouping_test.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_measurement.py b/cirq-core/cirq/work/observable_measurement.py index d880cef70a0..0353ea45bc4 100644 --- a/cirq-core/cirq/work/observable_measurement.py +++ b/cirq-core/cirq/work/observable_measurement.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_measurement_data.py b/cirq-core/cirq/work/observable_measurement_data.py index 61f96f9faf7..60cf74d2412 100644 --- a/cirq-core/cirq/work/observable_measurement_data.py +++ b/cirq-core/cirq/work/observable_measurement_data.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_measurement_data_test.py b/cirq-core/cirq/work/observable_measurement_data_test.py index 9eb344e5f8b..9382a646d17 100644 --- a/cirq-core/cirq/work/observable_measurement_data_test.py +++ b/cirq-core/cirq/work/observable_measurement_data_test.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_measurement_test.py b/cirq-core/cirq/work/observable_measurement_test.py index d76eb7a1f89..4a51b138b74 100644 --- a/cirq-core/cirq/work/observable_measurement_test.py +++ b/cirq-core/cirq/work/observable_measurement_test.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_readout_calibration.py b/cirq-core/cirq/work/observable_readout_calibration.py index 9ccd6bd410a..96d5832bcb8 100644 --- a/cirq-core/cirq/work/observable_readout_calibration.py +++ b/cirq-core/cirq/work/observable_readout_calibration.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import dataclasses from typing import Union, Iterable, TYPE_CHECKING diff --git a/cirq-core/cirq/work/observable_readout_calibration_test.py b/cirq-core/cirq/work/observable_readout_calibration_test.py index 9c858cac394..877e488742a 100644 --- a/cirq-core/cirq/work/observable_readout_calibration_test.py +++ b/cirq-core/cirq/work/observable_readout_calibration_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Sequence import cirq diff --git a/cirq-core/cirq/work/observable_settings.py b/cirq-core/cirq/work/observable_settings.py index e135f336c68..c48f6bf5fdd 100644 --- a/cirq-core/cirq/work/observable_settings.py +++ b/cirq-core/cirq/work/observable_settings.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-core/cirq/work/observable_settings_test.py b/cirq-core/cirq/work/observable_settings_test.py index deefd6b1f80..5602e871a33 100644 --- a/cirq-core/cirq/work/observable_settings_test.py +++ b/cirq-core/cirq/work/observable_settings_test.py @@ -1,10 +1,10 @@ -# Copyright 2020 The Cirq developers +# Copyright 2020 The Cirq Developers # # 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 +# 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, diff --git a/cirq-google/cirq_google/_version_test.py b/cirq-google/cirq_google/_version_test.py index a72e6890b36..667173db76f 100644 --- a/cirq-google/cirq_google/_version_test.py +++ b/cirq-google/cirq_google/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_google diff --git a/cirq-google/cirq_google/api/v2/results_test.py b/cirq-google/cirq_google/api/v2/results_test.py index 3b3b76eeb24..4c0b057f0b4 100644 --- a/cirq-google/cirq_google/api/v2/results_test.py +++ b/cirq-google/cirq_google/api/v2/results_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import pytest diff --git a/cirq-google/cirq_google/calibration/engine_simulator.py b/cirq-google/cirq_google/calibration/engine_simulator.py index 8bdb2479c61..196d043c737 100644 --- a/cirq-google/cirq_google/calibration/engine_simulator.py +++ b/cirq-google/cirq_google/calibration/engine_simulator.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import ( Any, Callable, diff --git a/cirq-google/cirq_google/calibration/engine_simulator_test.py b/cirq-google/cirq_google/calibration/engine_simulator_test.py index 253e2472397..a8910381a1b 100644 --- a/cirq-google/cirq_google/calibration/engine_simulator_test.py +++ b/cirq-google/cirq_google/calibration/engine_simulator_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Iterable, Optional, Tuple import collections diff --git a/cirq-google/cirq_google/engine/client/quantum.py b/cirq-google/cirq_google/engine/client/quantum.py index 01ab4cfb4b2..40ac5a5cd6e 100644 --- a/cirq-google/cirq_google/engine/client/quantum.py +++ b/cirq-google/cirq_google/engine/client/quantum.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - from __future__ import absolute_import from cirq_google.engine.client.quantum_v1alpha1 import QuantumEngineServiceClient diff --git a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/__init__.py b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/__init__.py index ab107aac2d2..60615f4cc0e 100644 --- a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/__init__.py +++ b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - from __future__ import absolute_import import sys import warnings diff --git a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/enums.py b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/enums.py index 7d2c6a85593..95b9bcbd84b 100644 --- a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/enums.py +++ b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/enums.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +11,6 @@ # 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. - """Wrappers for protocol buffer enum types.""" import enum diff --git a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/quantum_engine_service_client_config.py b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/quantum_engine_service_client_config.py index f274d4aa45c..8d8e02ef31f 100644 --- a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/quantum_engine_service_client_config.py +++ b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/quantum_engine_service_client_config.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice config = { "interfaces": { "google.cloud.quantum.v1alpha1.QuantumEngineService": { diff --git a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/transports/quantum_engine_service_grpc_transport.py b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/transports/quantum_engine_service_grpc_transport.py index ccc42689817..8ec13372036 100644 --- a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/transports/quantum_engine_service_grpc_transport.py +++ b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/gapic/transports/quantum_engine_service_grpc_transport.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - import google.api_core.grpc_helpers from cirq_google.engine.client.quantum_v1alpha1.proto import engine_pb2_grpc diff --git a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/types/__init__.py b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/types/__init__.py index 7f3780613de..bbe35484e9d 100644 --- a/cirq-google/cirq_google/engine/client/quantum_v1alpha1/types/__init__.py +++ b/cirq-google/cirq_google/engine/client/quantum_v1alpha1/types/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties.py b/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties.py index 79773796230..06f202a1b7f 100644 --- a/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties.py +++ b/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_google import numpy as np from cirq.devices.noise_properties import NoiseProperties diff --git a/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties_test.py b/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties_test.py index 9833dcebcdb..5412130a321 100644 --- a/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties_test.py +++ b/cirq-google/cirq_google/experimental/noise_models/calibration_to_noise_properties_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest import cirq_google from cirq_google.api import v2 diff --git a/cirq-google/cirq_google/experimental/noise_models/compare_generated_noise_to_metrics.py b/cirq-google/cirq_google/experimental/noise_models/compare_generated_noise_to_metrics.py index d8618be791a..2996d5fb75d 100644 --- a/cirq-google/cirq_google/experimental/noise_models/compare_generated_noise_to_metrics.py +++ b/cirq-google/cirq_google/experimental/noise_models/compare_generated_noise_to_metrics.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # coverage: ignore import cirq_google import numpy as np diff --git a/cirq-google/cirq_google/json_test_data/spec.py b/cirq-google/cirq_google/json_test_data/spec.py index 915ad990306..8daffae9865 100644 --- a/cirq-google/cirq_google/json_test_data/spec.py +++ b/cirq-google/cirq_google/json_test_data/spec.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pathlib import cirq_google diff --git a/cirq-google/cirq_google/line/placement/anneal.py b/cirq-google/cirq_google/line/placement/anneal.py index fc2f2e3eac5..d2cf63213d8 100644 --- a/cirq-google/cirq_google/line/placement/anneal.py +++ b/cirq-google/cirq_google/line/placement/anneal.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/anneal_test.py b/cirq-google/cirq_google/line/placement/anneal_test.py index 837e24fec26..10c7dc31eba 100644 --- a/cirq-google/cirq_google/line/placement/anneal_test.py +++ b/cirq-google/cirq_google/line/placement/anneal_test.py @@ -4,11 +4,11 @@ # 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 +# 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 mock.ANY KIND, either express or implied. +# 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. diff --git a/cirq-google/cirq_google/line/placement/chip.py b/cirq-google/cirq_google/line/placement/chip.py index 8b83e453393..2766a2bd647 100644 --- a/cirq-google/cirq_google/line/placement/chip.py +++ b/cirq-google/cirq_google/line/placement/chip.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/chip_test.py b/cirq-google/cirq_google/line/placement/chip_test.py index c573cc45165..b288a2b6d75 100644 --- a/cirq-google/cirq_google/line/placement/chip_test.py +++ b/cirq-google/cirq_google/line/placement/chip_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/greedy.py b/cirq-google/cirq_google/line/placement/greedy.py index 6228c2745d8..15729a2c541 100644 --- a/cirq-google/cirq_google/line/placement/greedy.py +++ b/cirq-google/cirq_google/line/placement/greedy.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/greedy_test.py b/cirq-google/cirq_google/line/placement/greedy_test.py index a861e0ec887..f96a49c5ad8 100644 --- a/cirq-google/cirq_google/line/placement/greedy_test.py +++ b/cirq-google/cirq_google/line/placement/greedy_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/optimization.py b/cirq-google/cirq_google/line/placement/optimization.py index ed1ae733ecf..5805afee4f6 100644 --- a/cirq-google/cirq_google/line/placement/optimization.py +++ b/cirq-google/cirq_google/line/placement/optimization.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/line/placement/optimization_test.py b/cirq-google/cirq_google/line/placement/optimization_test.py index 49c54517d0f..6e93645b072 100644 --- a/cirq-google/cirq_google/line/placement/optimization_test.py +++ b/cirq-google/cirq_google/line/placement/optimization_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/cirq-google/cirq_google/optimizers/convert_to_sqrt_iswap_test.py b/cirq-google/cirq_google/optimizers/convert_to_sqrt_iswap_test.py index 7492614ad96..763d3a8207e 100644 --- a/cirq-google/cirq_google/optimizers/convert_to_sqrt_iswap_test.py +++ b/cirq-google/cirq_google/optimizers/convert_to_sqrt_iswap_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast import numpy as np import pytest diff --git a/cirq-google/cirq_google/optimizers/convert_to_sycamore_gates_test.py b/cirq-google/cirq_google/optimizers/convert_to_sycamore_gates_test.py index 31f074a8011..b9098d0785b 100644 --- a/cirq-google/cirq_google/optimizers/convert_to_sycamore_gates_test.py +++ b/cirq-google/cirq_google/optimizers/convert_to_sycamore_gates_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest import numpy as np diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/__init__.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/__init__.py index 29611b7ea2c..cf9e9537c47 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/__init__.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq_google.optimizers.two_qubit_gates.gate_compilation import ( gate_product_tabulation, GateTabulation, diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/example.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/example.py index 5c971718adf..b35e882b61b 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/example.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/example.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Example application of the two-qubit gate compilation algorithm. This script demonstrates construction and usage of the GateTabulation class. diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/example_test.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/example_test.py index d467919f71d..1c4d8f86943 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/example_test.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/example_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from matplotlib import pyplot as plt from cirq_google.optimizers.two_qubit_gates import example diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation.py index d291f86090f..6a0078b07cd 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Attempt to tabulate single qubit gates required to generate a target 2Q gate with a product A k A.""" from functools import reduce diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation_test.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation_test.py index da5e59fb7ef..e9ff9ef75da 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation_test.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/gate_compilation_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Tests for gate_compilation.py""" import numpy as np import pytest diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils.py index 00236fdef9d..4d833271787 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools from typing import Union, Sequence, Optional diff --git a/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils_test.py b/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils_test.py index 06fba00a4a4..3c39e9c41db 100644 --- a/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils_test.py +++ b/cirq-google/cirq_google/optimizers/two_qubit_gates/math_utils_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import pytest diff --git a/cirq-google/cirq_google/workflow/__init__.py b/cirq-google/cirq_google/workflow/__init__.py index b09b02d69c8..bc72377b108 100644 --- a/cirq-google/cirq_google/workflow/__init__.py +++ b/cirq-google/cirq_google/workflow/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from cirq_google.workflow.quantum_executable import ( ExecutableSpec, KeyValueExecutableSpec, diff --git a/cirq-ionq/cirq_ionq/_version_test.py b/cirq-ionq/cirq_ionq/_version_test.py index 18954e62dda..73b428eacac 100644 --- a/cirq-ionq/cirq_ionq/_version_test.py +++ b/cirq-ionq/cirq_ionq/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_ionq diff --git a/cirq-ionq/cirq_ionq/calibration.py b/cirq-ionq/cirq_ionq/calibration.py index 4e106e1d42b..96872092858 100644 --- a/cirq-ionq/cirq_ionq/calibration.py +++ b/cirq-ionq/cirq_ionq/calibration.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/calibration_test.py b/cirq-ionq/cirq_ionq/calibration_test.py index 17b83343851..f873bcd4ea2 100644 --- a/cirq-ionq/cirq_ionq/calibration_test.py +++ b/cirq-ionq/cirq_ionq/calibration_test.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_client.py b/cirq-ionq/cirq_ionq/ionq_client.py index c4d0d7a567f..899588a9afe 100644 --- a/cirq-ionq/cirq_ionq/ionq_client.py +++ b/cirq-ionq/cirq_ionq/ionq_client.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_client_test.py b/cirq-ionq/cirq_ionq/ionq_client_test.py index 9d638ee414c..96e318e4f05 100644 --- a/cirq-ionq/cirq_ionq/ionq_client_test.py +++ b/cirq-ionq/cirq_ionq/ionq_client_test.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_devices.py b/cirq-ionq/cirq_ionq/ionq_devices.py index e69a724225d..2ea5a029f37 100644 --- a/cirq-ionq/cirq_ionq/ionq_devices.py +++ b/cirq-ionq/cirq_ionq/ionq_devices.py @@ -1,4 +1,5 @@ # Copyright 2021 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_devices_test.py b/cirq-ionq/cirq_ionq/ionq_devices_test.py index a536c1cb542..8f082dfe8f2 100644 --- a/cirq-ionq/cirq_ionq/ionq_devices_test.py +++ b/cirq-ionq/cirq_ionq/ionq_devices_test.py @@ -1,4 +1,5 @@ # Copyright 2021 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_exceptions.py b/cirq-ionq/cirq_ionq/ionq_exceptions.py index 2cda6edbe1f..3a5ffefb61a 100644 --- a/cirq-ionq/cirq_ionq/ionq_exceptions.py +++ b/cirq-ionq/cirq_ionq/ionq_exceptions.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/ionq_exceptions_test.py b/cirq-ionq/cirq_ionq/ionq_exceptions_test.py index eb7863f4807..8c6040f8fd1 100644 --- a/cirq-ionq/cirq_ionq/ionq_exceptions_test.py +++ b/cirq-ionq/cirq_ionq/ionq_exceptions_test.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/results.py b/cirq-ionq/cirq_ionq/results.py index 34960ebdb33..d0f93f77fb8 100644 --- a/cirq-ionq/cirq_ionq/results.py +++ b/cirq-ionq/cirq_ionq/results.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/results_test.py b/cirq-ionq/cirq_ionq/results_test.py index 33bec6cbe55..c7cebbf9faa 100644 --- a/cirq-ionq/cirq_ionq/results_test.py +++ b/cirq-ionq/cirq_ionq/results_test.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/sampler.py b/cirq-ionq/cirq_ionq/sampler.py index a4b7f4d3671..4ec9a7f3fd8 100644 --- a/cirq-ionq/cirq_ionq/sampler.py +++ b/cirq-ionq/cirq_ionq/sampler.py @@ -1,4 +1,5 @@ # Copyright 2020 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/sampler_test.py b/cirq-ionq/cirq_ionq/sampler_test.py index 1af9cb9362b..064d2116264 100644 --- a/cirq-ionq/cirq_ionq/sampler_test.py +++ b/cirq-ionq/cirq_ionq/sampler_test.py @@ -1,4 +1,5 @@ -# Copyright 2020 The Cirq Developers +# Copyright 2021 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/service.py b/cirq-ionq/cirq_ionq/service.py index 28fd46ddb5a..01a37b83847 100644 --- a/cirq-ionq/cirq_ionq/service.py +++ b/cirq-ionq/cirq_ionq/service.py @@ -1,4 +1,5 @@ -# Copyright 2020 The Cirq Developers +# Copyright 2021 The Cirq Developers +# # 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 diff --git a/cirq-ionq/cirq_ionq/service_test.py b/cirq-ionq/cirq_ionq/service_test.py index 8c856327314..8e7fced91ee 100644 --- a/cirq-ionq/cirq_ionq/service_test.py +++ b/cirq-ionq/cirq_ionq/service_test.py @@ -1,4 +1,5 @@ -# Copyright 2020 The Cirq Developers +# Copyright 2021 The Cirq Developers +# # 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 diff --git a/cirq-pasqal/cirq_pasqal/_version_test.py b/cirq-pasqal/cirq_pasqal/_version_test.py index f5de2cce95b..66309fbf4d7 100644 --- a/cirq-pasqal/cirq_pasqal/_version_test.py +++ b/cirq-pasqal/cirq_pasqal/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_pasqal diff --git a/cirq-rigetti/cirq_rigetti/__init__.py b/cirq-rigetti/cirq_rigetti/__init__.py index d9febdb6948..8fe8bcd49a1 100644 --- a/cirq-rigetti/cirq_rigetti/__init__.py +++ b/cirq-rigetti/cirq_rigetti/__init__.py @@ -1,23 +1,20 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. from cirq_rigetti._version import ( __version__, ) - from cirq_rigetti.sampler import ( RigettiQCSSampler, get_rigetti_qcs_sampler, diff --git a/cirq-rigetti/cirq_rigetti/_qcs_api_client_decorator.py b/cirq-rigetti/cirq_rigetti/_qcs_api_client_decorator.py index f059ab8bcf8..9ce07efd66c 100644 --- a/cirq-rigetti/cirq_rigetti/_qcs_api_client_decorator.py +++ b/cirq-rigetti/cirq_rigetti/_qcs_api_client_decorator.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. import functools from qcs_api_client.client import build_sync_client diff --git a/cirq-rigetti/cirq_rigetti/_quil_output.py b/cirq-rigetti/cirq_rigetti/_quil_output.py index 3bec70edc9b..58aa2d00f9a 100644 --- a/cirq-rigetti/cirq_rigetti/_quil_output.py +++ b/cirq-rigetti/cirq_rigetti/_quil_output.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. from typing import Callable, Dict, Set, Tuple, Optional, List import cirq diff --git a/cirq-rigetti/cirq_rigetti/_version_test.py b/cirq-rigetti/cirq_rigetti/_version_test.py index 47661754eb4..a260ba485d7 100644 --- a/cirq-rigetti/cirq_rigetti/_version_test.py +++ b/cirq-rigetti/cirq_rigetti/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_rigetti diff --git a/cirq-rigetti/cirq_rigetti/aspen_device_test.py b/cirq-rigetti/cirq_rigetti/aspen_device_test.py index 799e48add5e..98866434865 100644 --- a/cirq-rigetti/cirq_rigetti/aspen_device_test.py +++ b/cirq-rigetti/cirq_rigetti/aspen_device_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import os from unittest.mock import patch, PropertyMock from math import sqrt diff --git a/cirq-rigetti/cirq_rigetti/circuit_sweep_executors.py b/cirq-rigetti/cirq_rigetti/circuit_sweep_executors.py index 24c8af87126..94672f74078 100644 --- a/cirq-rigetti/cirq_rigetti/circuit_sweep_executors.py +++ b/cirq-rigetti/cirq_rigetti/circuit_sweep_executors.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. """A collection of `CircuitSweepExecutor` s that the client may pass to `RigettiQCSService` or `RigettiQCSSampler` as `executor`. """ diff --git a/cirq-rigetti/cirq_rigetti/circuit_sweep_executors_test.py b/cirq-rigetti/cirq_rigetti/circuit_sweep_executors_test.py index dc275284ae9..3ce98b1ba4b 100644 --- a/cirq-rigetti/cirq_rigetti/circuit_sweep_executors_test.py +++ b/cirq-rigetti/cirq_rigetti/circuit_sweep_executors_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Tuple, Any, List, Union, Dict import pytest import cirq diff --git a/cirq-rigetti/cirq_rigetti/circuit_transformers.py b/cirq-rigetti/cirq_rigetti/circuit_transformers.py index 614d2392be6..2c3e0145f6f 100644 --- a/cirq-rigetti/cirq_rigetti/circuit_transformers.py +++ b/cirq-rigetti/cirq_rigetti/circuit_transformers.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. """A collection of `CircuitTransformer` s that the client may pass to `RigettiQCSService` or `RigettiQCSSampler` as `transformer`. """ diff --git a/cirq-rigetti/cirq_rigetti/circuit_transformers_test.py b/cirq-rigetti/cirq_rigetti/circuit_transformers_test.py index dc01144aa5b..c19085b5569 100644 --- a/cirq-rigetti/cirq_rigetti/circuit_transformers_test.py +++ b/cirq-rigetti/cirq_rigetti/circuit_transformers_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Tuple, List from unittest.mock import create_autospec import cirq diff --git a/cirq-rigetti/cirq_rigetti/logging.py b/cirq-rigetti/cirq_rigetti/logging.py index 0119c95aebc..6ed321c6800 100644 --- a/cirq-rigetti/cirq_rigetti/logging.py +++ b/cirq-rigetti/cirq_rigetti/logging.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. import logging import os diff --git a/cirq-rigetti/cirq_rigetti/qcs_sampler_and_service_test.py b/cirq-rigetti/cirq_rigetti/qcs_sampler_and_service_test.py index f48a9484b92..e8846b5eb73 100644 --- a/cirq-rigetti/cirq_rigetti/qcs_sampler_and_service_test.py +++ b/cirq-rigetti/cirq_rigetti/qcs_sampler_and_service_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Tuple, Any, List import cirq import pytest diff --git a/cirq-rigetti/cirq_rigetti/sampler.py b/cirq-rigetti/cirq_rigetti/sampler.py index 07063d32997..e8005b9c23e 100644 --- a/cirq-rigetti/cirq_rigetti/sampler.py +++ b/cirq-rigetti/cirq_rigetti/sampler.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. from typing import List, Optional from pyquil import get_qc diff --git a/cirq-rigetti/cirq_rigetti/sampler_bell_circuit_test.py b/cirq-rigetti/cirq_rigetti/sampler_bell_circuit_test.py index a7fcc4f78a4..903ce2925c1 100644 --- a/cirq-rigetti/cirq_rigetti/sampler_bell_circuit_test.py +++ b/cirq-rigetti/cirq_rigetti/sampler_bell_circuit_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast import pytest import cirq diff --git a/cirq-rigetti/cirq_rigetti/sampler_parametric_circuit_test.py b/cirq-rigetti/cirq_rigetti/sampler_parametric_circuit_test.py index 9fcf15cf6f0..028d198e685 100644 --- a/cirq-rigetti/cirq_rigetti/sampler_parametric_circuit_test.py +++ b/cirq-rigetti/cirq_rigetti/sampler_parametric_circuit_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast, Tuple import pytest import cirq diff --git a/cirq-rigetti/cirq_rigetti/sampler_readout_reassigned_qubits_test.py b/cirq-rigetti/cirq_rigetti/sampler_readout_reassigned_qubits_test.py index 4495ca78396..94b1984a126 100644 --- a/cirq-rigetti/cirq_rigetti/sampler_readout_reassigned_qubits_test.py +++ b/cirq-rigetti/cirq_rigetti/sampler_readout_reassigned_qubits_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast, Tuple, List import cirq import pytest diff --git a/cirq-rigetti/cirq_rigetti/sampler_readout_separate_memory_regions_test.py b/cirq-rigetti/cirq_rigetti/sampler_readout_separate_memory_regions_test.py index 44a356d9f3b..7fa36674905 100644 --- a/cirq-rigetti/cirq_rigetti/sampler_readout_separate_memory_regions_test.py +++ b/cirq-rigetti/cirq_rigetti/sampler_readout_separate_memory_regions_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast, Tuple import cirq import pytest diff --git a/cirq-rigetti/cirq_rigetti/sampler_test.py b/cirq-rigetti/cirq_rigetti/sampler_test.py index ea4d16bcc06..900b69d350f 100644 --- a/cirq-rigetti/cirq_rigetti/sampler_test.py +++ b/cirq-rigetti/cirq_rigetti/sampler_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import pytest from cirq_rigetti import get_rigetti_qcs_sampler diff --git a/cirq-rigetti/cirq_rigetti/service.py b/cirq-rigetti/cirq_rigetti/service.py index e898ce54c74..d2db540cd3f 100644 --- a/cirq-rigetti/cirq_rigetti/service.py +++ b/cirq-rigetti/cirq_rigetti/service.py @@ -1,18 +1,16 @@ -############################################################################## # Copyright 2021 The Cirq Developers # -# 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 +# 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 +# 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. -############################################################################## +# 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. from typing import cast, Optional import cirq import httpx diff --git a/cirq-rigetti/cirq_rigetti/service_bell_circuit_test.py b/cirq-rigetti/cirq_rigetti/service_bell_circuit_test.py index a2204b27453..de7a8545fef 100644 --- a/cirq-rigetti/cirq_rigetti/service_bell_circuit_test.py +++ b/cirq-rigetti/cirq_rigetti/service_bell_circuit_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast import pytest import cirq diff --git a/cirq-rigetti/cirq_rigetti/service_parametric_circuit_test.py b/cirq-rigetti/cirq_rigetti/service_parametric_circuit_test.py index 573fdf5136b..11c05885c2b 100644 --- a/cirq-rigetti/cirq_rigetti/service_parametric_circuit_test.py +++ b/cirq-rigetti/cirq_rigetti/service_parametric_circuit_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast, Tuple import pytest import cirq diff --git a/cirq-rigetti/cirq_rigetti/service_test.py b/cirq-rigetti/cirq_rigetti/service_test.py index 9726e9ea766..c88f8e48200 100644 --- a/cirq-rigetti/cirq_rigetti/service_test.py +++ b/cirq-rigetti/cirq_rigetti/service_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Iterator import pytest import httpx diff --git a/cirq-web/cirq_web/_version_test.py b/cirq-web/cirq_web/_version_test.py index db776616f11..499cf033a3f 100644 --- a/cirq-web/cirq_web/_version_test.py +++ b/cirq-web/cirq_web/_version_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import cirq_web diff --git a/dev_tools/bash_scripts_test.py b/dev_tools/bash_scripts_test.py index b7822a7c31a..f7dadabc368 100644 --- a/dev_tools/bash_scripts_test.py +++ b/dev_tools/bash_scripts_test.py @@ -43,6 +43,7 @@ def run( 'python', 'python3', 'pylint', + 'env', 'pytest', 'mypy', 'black', @@ -612,7 +613,9 @@ def test_pylint_changed_files_file_selection(tmpdir_factory): ).split() ) - intercepted_prefix = 'INTERCEPTED pylint --rcfile=dev_tools/conf/.pylintrc ' + intercepted_prefix = ( + 'INTERCEPTED env PYTHONPATH=dev_tools pylint --rcfile=dev_tools/conf/.pylintrc ' + ) result = run( script_file='check/pylint-changed-files', diff --git a/dev_tools/check_incremental_coverage_annotations.py b/dev_tools/check_incremental_coverage_annotations.py index 88e0613c24d..69b01fe043f 100644 --- a/dev_tools/check_incremental_coverage_annotations.py +++ b/dev_tools/check_incremental_coverage_annotations.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/dev_tools/conf/.pylintrc b/dev_tools/conf/.pylintrc index 83907d4c08a..48d8b10c73b 100644 --- a/dev_tools/conf/.pylintrc +++ b/dev_tools/conf/.pylintrc @@ -1,8 +1,8 @@ [MASTER] -load-plugins=pylint.extensions.docstyle,pylint.extensions.docparams +load-plugins=pylint.extensions.docstyle,pylint.extensions.docparams,pylint_copyright_checker max-line-length=100 disable=all -ignore-patterns=.*_pb2\.py,quantum_engine_service_client.py,engine_pb2_grpc.py +ignore-patterns=.*_pb2\.py,quantum_engine_service_client.py,engine_pb2_grpc.py,quantum_pb2_grpc.py output-format=colorized score=no reports=no @@ -55,6 +55,7 @@ enable= unused-variable, unused-wildcard-import, wildcard-import, + wrong-or-nonexistent-copyright-notice, wrong-import-order, wrong-import-position, yield-outside-function diff --git a/dev_tools/conf/mypy.ini b/dev_tools/conf/mypy.ini index 5044da9543a..86bb147cb34 100644 --- a/dev_tools/conf/mypy.ini +++ b/dev_tools/conf/mypy.ini @@ -5,7 +5,7 @@ follow_imports = silent ignore_missing_imports = true # 3rd-party libs for which we don't have stubs -[mypy-apiclient.*,freezegun.*,matplotlib.*,mpl_toolkits,multiprocessing.dummy,oauth2client.*,pandas.*,pytest.*,scipy.*,sortedcontainers.*,setuptools.*,pylatex.*,networkx.*,qiskit.*,pypandoc.*,ply.*,_pytest.*,google.api.*,google.api_core.*,grpc.*,google.oauth2.*,google.protobuf.text_format.*,quimb.*,pyquil.*,google.cloud.*,filelock.*,codeowners.*,tqdm.*,importlib_metadata.*,google.colab.*,IPython.*] +[mypy-apiclient.*,freezegun.*,matplotlib.*,mpl_toolkits,multiprocessing.dummy,oauth2client.*,pandas.*,pytest.*,scipy.*,sortedcontainers.*,setuptools.*,pylatex.*,networkx.*,qiskit.*,pypandoc.*,ply.*,_pytest.*,google.api.*,google.api_core.*,grpc.*,google.oauth2.*,google.protobuf.text_format.*,quimb.*,pyquil.*,google.cloud.*,filelock.*,codeowners.*,tqdm.*,importlib_metadata.*,google.colab.*,IPython.*,astroid.*,pylint.*] follow_imports = silent ignore_missing_imports = true diff --git a/dev_tools/docker_test.py b/dev_tools/docker_test.py index 4869441d1fc..8ac885442ef 100644 --- a/dev_tools/docker_test.py +++ b/dev_tools/docker_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import subprocess import pathlib import platform diff --git a/dev_tools/import_test.py b/dev_tools/import_test.py index 44f98f567e4..75a45be4f96 100755 --- a/dev_tools/import_test.py +++ b/dev_tools/import_test.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/dev_tools/pr_monitor.py b/dev_tools/pr_monitor.py index 6e5c287e92a..ef19a5b4529 100644 --- a/dev_tools/pr_monitor.py +++ b/dev_tools/pr_monitor.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Code to interact with GitHub API to label and auto-merge pull requests.""" import datetime diff --git a/dev_tools/profiling/live_plot_collector.py b/dev_tools/profiling/live_plot_collector.py index 638d847cdd0..f2f4d4cde50 100644 --- a/dev_tools/profiling/live_plot_collector.py +++ b/dev_tools/profiling/live_plot_collector.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import List, Mapping, Sequence import collections diff --git a/dev_tools/pylint_copyright_checker.py b/dev_tools/pylint_copyright_checker.py new file mode 100644 index 00000000000..43f30dbfc53 --- /dev/null +++ b/dev_tools/pylint_copyright_checker.py @@ -0,0 +1,98 @@ +# Copyright 2021 The Cirq Developers +# +# 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. + +from astroid import nodes + +from pylint.checkers import BaseChecker +from pylint.interfaces import IRawChecker + + +class CopyrightChecker(BaseChecker): + r"""Check for the copyright notices at the beginning of a Python source file. + + This checker can be disabled by putting `# pylint: disable=wrong-or-nonexistent-copyright-notice` + at the beginning of a file. + """ + + __implements__ = IRawChecker + + # The priority must be negtive. Pylint runs plugins with smaller priorities first. + priority = -1 + + name = "copyright-notice" + msgs = { + "R0001": ( + "Missing or wrong copyright notice", + "wrong-or-nonexistent-copyright-notice", + "Consider putting a correct copyright notice at the beginning of a file.", + ) + } + options = () + + def process_module(self, node: nodes.Module) -> None: + r"""Check whether the copyright notice is correctly placed in the source file of a module. + + Compare the first lines of a source file against the standard copyright notice (i.e., the + `golden` variable below). Suffix whitespace (including newline symbols) is not considered + during the comparison. Pylint will report a message if the copyright notice is not + correctly placed. + + Args: + node: the module to be checked. + """ + # Exit if the checker is disabled in the source file. + if not self.linter.is_message_enabled("wrong-or-nonexistent-copyright-notice"): + return + golden = [ + b'# Copyright 20XX The Cirq Developers', + b'#', + b'# Licensed under the Apache License, Version 2.0 (the "License");', + b'# you may not use this file except in compliance with the License.', + b'# You may obtain a copy of the License at', + b'#', + b'# https://www.apache.org/licenses/LICENSE-2.0', + b'#', + b'# Unless required by applicable law or agreed to in writing, software', + b'# distributed under the License is distributed on an "AS IS" BASIS,', + b'# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.', + b'# See the License for the specific language governing permissions and', + b'# limitations under the License.', + ] + with node.stream() as stream: + for expected_line, (lineno, line) in zip(golden, enumerate(stream)): + for expected_char, (colno, char) in zip(expected_line, enumerate(line)): + # The text needs to be same as the template except for the year. + if expected_char != char and not (lineno == 0 and 14 <= colno <= 15): + self.add_message( + "wrong-or-nonexistent-copyright-notice", + line=lineno + 1, + col_offset=colno, + ) + return + # The line cannot be shorter than the template or contain extra text. + if len(line) < len(expected_line) or line[len(expected_line) :].strip() != b'': + self.add_message( + "wrong-or-nonexistent-copyright-notice", + line=lineno + 1, + col_offset=min(len(line), len(expected_line)), + ) + return + + +def register(linter): + r"""Register this checker to pylint. + + The registration is done automatically if this file is in $PYTHONPATH. + """ + linter.register_checker(CopyrightChecker(linter)) diff --git a/dev_tools/pylint_copyright_checker_test.py b/dev_tools/pylint_copyright_checker_test.py new file mode 100644 index 00000000000..0e253d06eb3 --- /dev/null +++ b/dev_tools/pylint_copyright_checker_test.py @@ -0,0 +1,89 @@ +# Copyright 2021 The Cirq Developers +# +# 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. + +from astroid import parse +from pylint.testutils import CheckerTestCase, Message + +from dev_tools.pylint_copyright_checker import CopyrightChecker + + +class TestCopyrightChecker(CheckerTestCase): + r"""Test the copyright-notice checker for Pylint""" + + CHECKER_CLASS = CopyrightChecker + + def test_missing_copyright(self) -> None: + r"""Report message when no copyright notice at the beginning of a file.""" + node = parse("import os") + with self.assertAddsMessages( + Message( + msg_id='wrong-or-nonexistent-copyright-notice', + line=1, + ), + ): + self.checker.process_module(node) + + def test_wrong_copyright(self) -> None: + r"""Report message when the copyright notice is incorrect.""" + node = parse("# Copyright 2021 Someone else") + with self.assertAddsMessages( + Message( + msg_id='wrong-or-nonexistent-copyright-notice', + line=1, + ), + ): + self.checker.process_module(node) + + def test_shorter_copyright(self) -> None: + r"""Report message when the copyright notice is incorrect.""" + node = parse("# Copyright 2021 The") + with self.assertAddsMessages( + Message( + msg_id='wrong-or-nonexistent-copyright-notice', + line=1, + ), + ): + self.checker.process_module(node) + + def test_longer_copyright(self) -> None: + r"""Report message when the copyright notice is incorrect.""" + node = parse("# Copyright 2021 The Cirq Developers and extra") + with self.assertAddsMessages( + Message( + msg_id='wrong-or-nonexistent-copyright-notice', + line=1, + ), + ): + self.checker.process_module(node) + + def test_correct_copyright(self) -> None: + r"""Do not report a message when the correct copyright notice is shown.""" + node = parse( + """# Copyright 2020 The Cirq Developers +# +# 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. +""" + ) + with self.assertNoMessages(): + self.checker.process_module(node) diff --git a/dev_tools/requirements/pytest-minimal.env.txt b/dev_tools/requirements/pytest-minimal.env.txt index 94ba6b6a2be..8033445a392 100644 --- a/dev_tools/requirements/pytest-minimal.env.txt +++ b/dev_tools/requirements/pytest-minimal.env.txt @@ -12,3 +12,7 @@ # one of the _compat_test.py tests uses flynt for testing metadata -r deps/flynt.txt + +# pylint is needed for invoking custom checkers + +-r deps/pylint.txt diff --git a/dev_tools/snippets_test.py b/dev_tools/snippets_test.py index 9b377859f74..fecbad6f0bc 100644 --- a/dev_tools/snippets_test.py +++ b/dev_tools/snippets_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/dev_tools/test_utils.py b/dev_tools/test_utils.py index 792a6daff1e..99738213925 100644 --- a/dev_tools/test_utils.py +++ b/dev_tools/test_utils.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/dev_tools/version_test.py b/dev_tools/version_test.py index 874702f84fa..8da0e60136c 100644 --- a/dev_tools/version_test.py +++ b/dev_tools/version_test.py @@ -4,7 +4,7 @@ # 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 +# 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, diff --git a/examples/basic_arithmetic.py b/examples/basic_arithmetic.py index 378f344f009..0d103d1690e 100644 --- a/examples/basic_arithmetic.py +++ b/examples/basic_arithmetic.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # -*- coding: utf-8 -*- """Creates and simulates basic arithmetic circuits diff --git a/examples/bb84.py b/examples/bb84.py index 6320410275c..dcc17951634 100644 --- a/examples/bb84.py +++ b/examples/bb84.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """ Example program to demonstrate BB84 QKD Protocol BB84 [1] is a quantum key distribution (QKD) protocol developed by diff --git a/examples/bcs_mean_field.py b/examples/bcs_mean_field.py index 1ea80e5ebaa..d3e4f429dff 100644 --- a/examples/bcs_mean_field.py +++ b/examples/bcs_mean_field.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # coding=utf-8 r"""Quantum circuit to prepare the BCS ground states for superconductors/superfluids. Such states can be prepared by diff --git a/examples/bell_inequality.py b/examples/bell_inequality.py index dfa0875b1c7..188a7141376 100644 --- a/examples/bell_inequality.py +++ b/examples/bell_inequality.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # TODO(#3388) Add summary line to docstring. # pylint: disable=docstring-first-line-empty """ diff --git a/examples/bernstein_vazirani.py b/examples/bernstein_vazirani.py index b126f31d74a..ec29e194afa 100644 --- a/examples/bernstein_vazirani.py +++ b/examples/bernstein_vazirani.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Demonstrates the Bernstein-Vazirani algorithm. The (non-recursive) Bernstein-Vazirani algorithm takes a black-box oracle diff --git a/examples/cross_entropy_benchmarking_example.py b/examples/cross_entropy_benchmarking_example.py index 3a97d8f81db..e8037d9af55 100644 --- a/examples/cross_entropy_benchmarking_example.py +++ b/examples/cross_entropy_benchmarking_example.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Cross entropy benchmarking example. Cross entropy benchmarking is a method for assessing the performance of diff --git a/examples/deutsch.py b/examples/deutsch.py index 0b7b99e8898..231b3367e62 100644 --- a/examples/deutsch.py +++ b/examples/deutsch.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Demonstrates Deutsch's algorithm. Deutsch's algorithm is one of the simplest demonstrations of quantum parallelism diff --git a/examples/direct_fidelity_estimation.py b/examples/direct_fidelity_estimation.py index d8041f7cc49..9735af99d6d 100644 --- a/examples/direct_fidelity_estimation.py +++ b/examples/direct_fidelity_estimation.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Implements direct fidelity estimation. Fidelity between the desired pure state rho and the actual state sigma is diff --git a/examples/direct_fidelity_estimation_test.py b/examples/direct_fidelity_estimation_test.py index 4da3358216e..c66ca1b62e3 100644 --- a/examples/direct_fidelity_estimation_test.py +++ b/examples/direct_fidelity_estimation_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import pytest import cirq diff --git a/examples/examples_test.py b/examples/examples_test.py index 0ffc2e57e16..bfcff9d30f4 100644 --- a/examples/examples_test.py +++ b/examples/examples_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import numpy as np diff --git a/examples/grover.py b/examples/grover.py index 5d3cb0d716e..99f2bf5dce2 100644 --- a/examples/grover.py +++ b/examples/grover.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Demonstrates Grover algorithm. The Grover algorithm takes a black-box oracle implementing a function diff --git a/examples/heatmaps.py b/examples/heatmaps.py index 0e9f8c7ce2b..94871ee7045 100644 --- a/examples/heatmaps.py +++ b/examples/heatmaps.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Example heatmaps from the cirq.vis.heatmap package.""" import numpy as np diff --git a/examples/hello_qubit.py b/examples/hello_qubit.py index 6b3b42eafa9..71a14b7849f 100644 --- a/examples/hello_qubit.py +++ b/examples/hello_qubit.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Creates and simulates a simple circuit. === EXAMPLE OUTPUT === diff --git a/examples/hhl.py b/examples/hhl.py index 9736b0419a1..c815bfd2afd 100644 --- a/examples/hhl.py +++ b/examples/hhl.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # TODO(#3388) Add summary line to docstring. # pylint: disable=docstring-first-line-empty """ diff --git a/examples/hidden_shift_algorithm.py b/examples/hidden_shift_algorithm.py index 1f29ead7542..35ab35316d5 100644 --- a/examples/hidden_shift_algorithm.py +++ b/examples/hidden_shift_algorithm.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import random import cirq diff --git a/examples/noisy_simulation_example.py b/examples/noisy_simulation_example.py index 773c6d2d818..c92f3cfa1e7 100644 --- a/examples/noisy_simulation_example.py +++ b/examples/noisy_simulation_example.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Creates and simulate a noisy circuit using cirq.ConstantQubitNoiseModel class.""" import cirq diff --git a/examples/phase_estimator.py b/examples/phase_estimator.py index f0e64967768..7d4a4ee16e8 100644 --- a/examples/phase_estimator.py +++ b/examples/phase_estimator.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Creates and simulates a phase estimator circuit. === EXAMPLE OUTPUT === diff --git a/examples/place_on_bristlecone.py b/examples/place_on_bristlecone.py index 4a61e6ea2a7..957609197a7 100644 --- a/examples/place_on_bristlecone.py +++ b/examples/place_on_bristlecone.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # pylint: disable=line-too-long """Create a circuit, optimize it, and map it onto a Bristlecone chip. diff --git a/examples/qaoa.py b/examples/qaoa.py index 87528dc25ac..8bf5b1ee38d 100644 --- a/examples/qaoa.py +++ b/examples/qaoa.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Runs the Quantum Approximate Optimization Algorithm on Max-Cut. === EXAMPLE OUTPUT === diff --git a/examples/quantum_fourier_transform.py b/examples/quantum_fourier_transform.py index 8ac9e4fed99..7b4c19a3f40 100644 --- a/examples/quantum_fourier_transform.py +++ b/examples/quantum_fourier_transform.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # TODO(#3388) Add summary line to docstring. # pylint: disable=docstring-first-line-empty """ diff --git a/examples/quantum_teleportation.py b/examples/quantum_teleportation.py index 489f4a52020..5c737d09b21 100644 --- a/examples/quantum_teleportation.py +++ b/examples/quantum_teleportation.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Quantum Teleportation. Quantum Teleportation is a process by which a quantum state can be transmitted by sending only two classical bits of information. This is accomplished by diff --git a/examples/qubit_characterizations_example.py b/examples/qubit_characterizations_example.py index 46c85747561..88cd2aa9304 100644 --- a/examples/qubit_characterizations_example.py +++ b/examples/qubit_characterizations_example.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice import numpy as np import cirq diff --git a/examples/shor.py b/examples/shor.py index 3171962be1d..e0624242425 100644 --- a/examples/shor.py +++ b/examples/shor.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Demonstrates Shor's algorithm. Shor's algorithm [1] is a quantum algorithm for integer factorization. Given diff --git a/examples/shors_code.py b/examples/shors_code.py index 987090bbf5d..ef8907de0d1 100644 --- a/examples/shors_code.py +++ b/examples/shors_code.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """ Shor's code is a stabilizer code for quantum error correction. It uses 9 qubits to encode 1 logic qubit and is able to correct at most one bit flip and one sign flip or their combination. diff --git a/examples/simon_algorithm.py b/examples/simon_algorithm.py index 0f1fc46977c..718cae4c067 100644 --- a/examples/simon_algorithm.py +++ b/examples/simon_algorithm.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice # Used for classical post-processing: from collections import Counter import numpy as np diff --git a/examples/stabilizer_code.py b/examples/stabilizer_code.py index b35a8c6fbc0..b4fc09d408b 100644 --- a/examples/stabilizer_code.py +++ b/examples/stabilizer_code.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Dict, List, Tuple import numpy as np diff --git a/examples/stabilizer_code_test.py b/examples/stabilizer_code_test.py index 4dbf8f6a08d..c6d1f92bb8c 100644 --- a/examples/stabilizer_code_test.py +++ b/examples/stabilizer_code_test.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import cast, List, Optional import numpy as np diff --git a/examples/superdense_coding.py b/examples/superdense_coding.py index 723f1502b7e..dbfb83b48c7 100644 --- a/examples/superdense_coding.py +++ b/examples/superdense_coding.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Superdense Coding. Superdense Coding is a method to transmit two classical bits of information by sending only one qubit of information. This is accomplished by diff --git a/examples/swap_networks.py b/examples/swap_networks.py index f6dc1dad911..27e6eb6e3e0 100644 --- a/examples/swap_networks.py +++ b/examples/swap_networks.py @@ -1,3 +1,4 @@ +# pylint: disable=wrong-or-nonexistent-copyright-notice """Demonstrates swap networks. Swap networks are used to get around limited connectivity in a hardware device. diff --git a/rtd_docs/conf.py b/rtd_docs/conf.py index dc22a28add1..ecdb6981c56 100644 --- a/rtd_docs/conf.py +++ b/rtd_docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # coverage: ignore # The content for all documentation lives in ../docs. That folder is