Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#93)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.4.0...v5.0.0)
- [github.com/glotzerlab/fix-license-header: v0.3.2 → v0.4.1](glotzerlab/fix-license-header@v0.3.2...v0.4.1)
- [github.com/pre-commit/mirrors-clang-format: v16.0.6 → v19.1.1](pre-commit/mirrors-clang-format@v16.0.6...v19.1.1)
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.6.9](astral-sh/ruff-pre-commit@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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and mphoward authored Nov 13, 2024
1 parent 6de4cb2 commit 182cbbb
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/ParticleEvaporator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ParticleEvaporatorGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PYBIND11_EXPORT ParticleEvaporatorGPU : public ParticleEvaporator
unsigned int seed);

//! Destructor
virtual ~ParticleEvaporatorGPU() {};
virtual ~ParticleEvaporatorGPU() { };

//! Set autotuner parameters
/*!
Expand Down
6 changes: 3 additions & 3 deletions src/TwoStepBrownianFlowGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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_
6 changes: 3 additions & 3 deletions src/TwoStepLangevinFlowGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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_
2 changes: 1 addition & 1 deletion src/TypeUpdaterGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PYBIND11_EXPORT TypeUpdaterGPU : public TypeUpdater
Scalar z_hi);

//! Destructor
virtual ~TypeUpdaterGPU() {};
virtual ~TypeUpdaterGPU() { };

//! Set autotuner parameters
/*!
Expand Down
4 changes: 2 additions & 2 deletions src/WallPotentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ template<class evaluator> void export_wall_potential(pybind11::module& m, const
&make_wall_params<evaluator>);
}

} // end namespace detail
} // end namespace azplugins
} // end namespace detail
} // end namespace azplugins
#endif // NVCC

#endif // AZPLUGINS_WALL_POTENTIALS_H_
1 change: 1 addition & 0 deletions src/pytest/test_bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import hoomd
import numpy

import pytest

PotentialTestCase = collections.namedtuple(
Expand Down
1 change: 1 addition & 0 deletions src/pytest/test_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import hoomd
import hoomd.azplugins
import numpy

import pytest

PotentialTestCase = collections.namedtuple(
Expand Down
1 change: 1 addition & 0 deletions src/pytest/test_pair_aniso.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import hoomd
import hoomd.azplugins
import numpy

import pytest

PotentialTestCase = collections.namedtuple(
Expand Down
1 change: 1 addition & 0 deletions src/pytest/test_pair_dpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import hoomd
import numpy

import pytest


Expand Down

0 comments on commit 182cbbb

Please sign in to comment.