Skip to content

Commit

Permalink
Remove wall.py and dem from the pre-commit ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Mar 18, 2022
1 parent 8345749 commit dbb3103
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ repos:
# These also need to be removed in setup.cfg
exclude: |
(?x)(
^hoomd/hpmc/external/wall.py|
^hoomd/extern/|
^hoomd/mpcd/|
^hoomd/dem/|
^hoomd/metal/
)
- repo: https://github.com/pre-commit/mirrors-clang-format
Expand Down
4 changes: 2 additions & 2 deletions hoomd/hpmc/external/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class CPPExternalPotential(ExternalField):
Example:
.. code-block:: python
grav_code = "return r_i.z + box.getL().z/2;"
gravity_code = "return r_i.z + box.getL().z/2;"
gravity = hoomd.hpmc.external.user.CPPExternalPotential(
code=grav_code)
code=gravity_code)
mc.external_potential = gravity
Note:
Expand Down
9 changes: 7 additions & 2 deletions hoomd/hpmc/external/wall.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Copyright (c) 2009-2022 The Regents of the University of Michigan.
# Part of HOOMD-blue, released under the BSD 3-Clause License.

"""Wall potentials HPMC simulations.
Set :math:`U_{\\mathrm{external},i}` evaluated in
`hoomd.hpmc.integrate.HPMCIntegrator` to a hard particle-wall interaction.
"""

import hoomd
from hoomd.wall import _WallsMetaList
from hoomd.data.parameterdicts import ParameterDict
from hoomd.data.syncedlist import identity
from hoomd.hpmc.external.field import ExternalField
from hoomd.logging import log
Expand All @@ -24,7 +29,7 @@ def _to_hpmc_cpp_wall(wall):


class _HPMCWallsMetaList(_WallsMetaList):
"""Handle HPMC walls
"""Handle HPMC walls.
This class supplements the base `_WallsMetaList` class with the
functionality to ensure that walls added to the `WallPotential` are
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ exclude = .git,
__pycache__,
build,
hoomd/extern,
hoomd/hpmc/external/wall.py
hoomd/dem,
hoomd/metal,
hoomd/mpcd,
max_line_length = 80
Expand Down

0 comments on commit dbb3103

Please sign in to comment.