Skip to content

Commit

Permalink
Merge pull request #360 from glotzerlab/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
joaander committed Apr 1, 2024
2 parents a0cd4a3 + e641d3c commit 750bf33
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -22,7 +22,7 @@ repos:
hooks:
- id: actionlint
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.2.0
rev: v0.3.2
hooks:
- id: fix-license-header
name: Fix license headers (Python)
Expand All @@ -47,12 +47,12 @@ repos:
- --keep-after=.. include
- --comment-prefix=..
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.13'
rev: 'v0.3.4'
hooks:
- id: ruff-format
- id: ruff
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
rev: v18.1.2
hooks:
- id: clang-format
types_or: [c, c++]
29 changes: 15 additions & 14 deletions gsd/hoomd.py
Expand Up @@ -551,20 +551,21 @@ def validate(self):
].reshape([NT])
sumN = numpy.sum(self.state['hpmc/convex_spheropolyhedron/N'])

self.state[
'hpmc/convex_spheropolyhedron/sweep_radius'
] = numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolyhedron/sweep_radius'],
dtype=numpy.float32,
self.state['hpmc/convex_spheropolyhedron/sweep_radius'] = (
numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolyhedron/sweep_radius'],
dtype=numpy.float32,
)
)
self.state['hpmc/convex_spheropolyhedron/sweep_radius'] = self.state[
'hpmc/convex_spheropolyhedron/sweep_radius'
].reshape([NT])

self.state[
'hpmc/convex_spheropolyhedron/vertices'
] = numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolyhedron/vertices'], dtype=numpy.float32
self.state['hpmc/convex_spheropolyhedron/vertices'] = (
numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolyhedron/vertices'],
dtype=numpy.float32,
)
)
self.state['hpmc/convex_spheropolyhedron/vertices'] = self.state[
'hpmc/convex_spheropolyhedron/vertices'
Expand Down Expand Up @@ -595,11 +596,11 @@ def validate(self):
].reshape([NT])
sumN = numpy.sum(self.state['hpmc/convex_spheropolygon/N'])

self.state[
'hpmc/convex_spheropolygon/sweep_radius'
] = numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolygon/sweep_radius'],
dtype=numpy.float32,
self.state['hpmc/convex_spheropolygon/sweep_radius'] = (
numpy.ascontiguousarray(
self.state['hpmc/convex_spheropolygon/sweep_radius'],
dtype=numpy.float32,
)
)
self.state['hpmc/convex_spheropolygon/sweep_radius'] = self.state[
'hpmc/convex_spheropolygon/sweep_radius'
Expand Down

0 comments on commit 750bf33

Please sign in to comment.