From 182cbbb19c54dc81ec4cda12ac0c8ccc2f1e3467 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 08:35:22 -0600 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#93) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/glotzerlab/fix-license-header: v0.3.2 → v0.4.1](https://github.com/glotzerlab/fix-license-header/compare/v0.3.2...v0.4.1) - [github.com/pre-commit/mirrors-clang-format: v16.0.6 → v19.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v16.0.6...v19.1.1) - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.6.9) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Run ruff locally --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Michael Howard --- .pre-commit-config.yaml | 8 ++++---- src/ParticleEvaporator.h | 2 +- src/ParticleEvaporatorGPU.h | 2 +- src/TwoStepBrownianFlowGPU.h | 6 +++--- src/TwoStepLangevinFlowGPU.h | 6 +++--- src/TypeUpdaterGPU.h | 2 +- src/WallPotentials.h | 4 ++-- src/pytest/test_bond.py | 1 + src/pytest/test_pair.py | 1 + src/pytest/test_pair_aniso.py | 1 + src/pytest/test_pair_dpd.py | 1 + 11 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 067e19c2..fd6dd03e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 'v4.4.0' + rev: 'v5.0.0' hooks: - id: end-of-file-fixer exclude_types: [svg] @@ -19,7 +19,7 @@ repos: - --remove - id: mixed-line-ending - repo: https://github.com/glotzerlab/fix-license-header - rev: v0.3.2 + rev: v0.4.1 hooks: - id: fix-license-header name: Fix license headers (Python) @@ -48,12 +48,12 @@ repos: - --keep-after=.. automodule - --comment-prefix=.. - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v16.0.6 + rev: v19.1.1 hooks: - id: clang-format types_or: [c, c++, cuda, inc] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.6.9 hooks: - id: ruff-format - id: ruff diff --git a/src/ParticleEvaporator.h b/src/ParticleEvaporator.h index 71a43a9d..7b29b792 100644 --- a/src/ParticleEvaporator.h +++ b/src/ParticleEvaporator.h @@ -56,7 +56,7 @@ class PYBIND11_EXPORT ParticleEvaporator : public TypeUpdater unsigned int seed); //! Destructor - virtual ~ParticleEvaporator() {}; + virtual ~ParticleEvaporator() { }; //! Get the maximum number of particles to evaporate unsigned int getNEvapMax() const diff --git a/src/ParticleEvaporatorGPU.h b/src/ParticleEvaporatorGPU.h index fa1ffc51..ac805dc5 100644 --- a/src/ParticleEvaporatorGPU.h +++ b/src/ParticleEvaporatorGPU.h @@ -41,7 +41,7 @@ class PYBIND11_EXPORT ParticleEvaporatorGPU : public ParticleEvaporator unsigned int seed); //! Destructor - virtual ~ParticleEvaporatorGPU() {}; + virtual ~ParticleEvaporatorGPU() { }; //! Set autotuner parameters /*! diff --git a/src/TwoStepBrownianFlowGPU.h b/src/TwoStepBrownianFlowGPU.h index 7711a8c6..eae9c256 100644 --- a/src/TwoStepBrownianFlowGPU.h +++ b/src/TwoStepBrownianFlowGPU.h @@ -48,7 +48,7 @@ class PYBIND11_EXPORT TwoStepBrownianFlowGPU : public azplugins::TwoStepBrownian } //! Destructor - virtual ~TwoStepBrownianFlowGPU() {}; + virtual ~TwoStepBrownianFlowGPU() { }; //! Performs the second step of the integration virtual void integrateStepOne(unsigned int timestep); @@ -153,6 +153,6 @@ void export_TwoStepBrownianFlowGPU(pybind11::module& m, const std::string& name) Scalar, bool>()); } - } // end namespace detail - } // namespace azplugins + } // end namespace detail + } // namespace azplugins #endif // AZPLUGINS_TWO_STEP_BROWNIAN_FLOW_GPU_H_ diff --git a/src/TwoStepLangevinFlowGPU.h b/src/TwoStepLangevinFlowGPU.h index 4f91e170..53f63cc2 100644 --- a/src/TwoStepLangevinFlowGPU.h +++ b/src/TwoStepLangevinFlowGPU.h @@ -50,7 +50,7 @@ class PYBIND11_EXPORT TwoStepLangevinFlowGPU : public azplugins::TwoStepLangevin } //! Destructor - virtual ~TwoStepLangevinFlowGPU() {}; + virtual ~TwoStepLangevinFlowGPU() { }; //! Performs the second step of the integration virtual void integrateStepOne(unsigned int timestep); @@ -216,6 +216,6 @@ void export_TwoStepLangevinFlowGPU(pybind11::module& m, const std::string& name) Scalar, bool>()); } - } // end namespace detail - } // namespace azplugins + } // end namespace detail + } // namespace azplugins #endif // AZPLUGINS_TWO_STEP_LANGEVIN_FLOW_GPU_H_ diff --git a/src/TypeUpdaterGPU.h b/src/TypeUpdaterGPU.h index b53b24f3..d1c0ee54 100644 --- a/src/TypeUpdaterGPU.h +++ b/src/TypeUpdaterGPU.h @@ -39,7 +39,7 @@ class PYBIND11_EXPORT TypeUpdaterGPU : public TypeUpdater Scalar z_hi); //! Destructor - virtual ~TypeUpdaterGPU() {}; + virtual ~TypeUpdaterGPU() { }; //! Set autotuner parameters /*! diff --git a/src/WallPotentials.h b/src/WallPotentials.h index e7bc1e09..cd894add 100644 --- a/src/WallPotentials.h +++ b/src/WallPotentials.h @@ -84,8 +84,8 @@ template void export_wall_potential(pybind11::module& m, const &make_wall_params); } - } // end namespace detail - } // end namespace azplugins + } // end namespace detail + } // end namespace azplugins #endif // NVCC #endif // AZPLUGINS_WALL_POTENTIALS_H_ diff --git a/src/pytest/test_bond.py b/src/pytest/test_bond.py index 56ac8e58..1a242a38 100644 --- a/src/pytest/test_bond.py +++ b/src/pytest/test_bond.py @@ -8,6 +8,7 @@ import hoomd import numpy + import pytest PotentialTestCase = collections.namedtuple( diff --git a/src/pytest/test_pair.py b/src/pytest/test_pair.py index 006d14ed..97ad79c6 100644 --- a/src/pytest/test_pair.py +++ b/src/pytest/test_pair.py @@ -9,6 +9,7 @@ import hoomd import hoomd.azplugins import numpy + import pytest PotentialTestCase = collections.namedtuple( diff --git a/src/pytest/test_pair_aniso.py b/src/pytest/test_pair_aniso.py index 88410d5e..1328fb13 100644 --- a/src/pytest/test_pair_aniso.py +++ b/src/pytest/test_pair_aniso.py @@ -9,6 +9,7 @@ import hoomd import hoomd.azplugins import numpy + import pytest PotentialTestCase = collections.namedtuple( diff --git a/src/pytest/test_pair_dpd.py b/src/pytest/test_pair_dpd.py index ae194582..a0cde02a 100644 --- a/src/pytest/test_pair_dpd.py +++ b/src/pytest/test_pair_dpd.py @@ -6,6 +6,7 @@ import hoomd import numpy + import pytest