diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9630f0981..cd5f8b534 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ # limitations under the License. exclude: ^(.git/|.tox/|CHANGELOG.md|VERSION) -default_stages: [commit] +default_stages: [pre-commit] fail_fast: true repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -30,18 +30,18 @@ repos: - id: requirements-txt-fixer - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.1.2 hooks: - id: flake8 args: diff --git a/covalent/_serialize/common.py b/covalent/_serialize/common.py index 341e112f0..5b82570a6 100644 --- a/covalent/_serialize/common.py +++ b/covalent/_serialize/common.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -""" Serialization/Deserialization methods for Assets """ +"""Serialization/Deserialization methods for Assets""" import hashlib import json diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py b/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py index ef276a96c..e3011f1c0 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/local_sampler.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""" +""" " Pennylane-Qiskit device that uses the local Qiskit `Sampler` primitive """ diff --git a/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py b/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py index 80b1a6708..bcf10e6a1 100644 --- a/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py +++ b/covalent/executor/quantum_plugins/qiskit_plugin/runtime_sampler.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""" +""" " Pennylane-Qiskit device that uses the Qiskit Runtime `Sampler` primitive """ diff --git a/covalent_dispatcher/_core/runner_modules/executor_proxy.py b/covalent_dispatcher/_core/runner_modules/executor_proxy.py index c143066dd..fce7e6880 100644 --- a/covalent_dispatcher/_core/runner_modules/executor_proxy.py +++ b/covalent_dispatcher/_core/runner_modules/executor_proxy.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -""" Monitor executor instances """ +"""Monitor executor instances""" from typing import Any diff --git a/covalent_dispatcher/_core/runner_modules/jobs.py b/covalent_dispatcher/_core/runner_modules/jobs.py index 55d79eead..e48a1c37a 100644 --- a/covalent_dispatcher/_core/runner_modules/jobs.py +++ b/covalent_dispatcher/_core/runner_modules/jobs.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -""" Handlers for the executor proxy """ +"""Handlers for the executor proxy""" from covalent._shared_files import logger diff --git a/covalent_ui/api/v1/database/schema/electron.py b/covalent_ui/api/v1/database/schema/electron.py index 01a36bca8..3d32487e5 100644 --- a/covalent_ui/api/v1/database/schema/electron.py +++ b/covalent_ui/api/v1/database/schema/electron.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Electrons Schema """ +"""Electrons Schema""" from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, String, Text, func