Skip to content

Commit

Permalink
fix precommit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Nov 15, 2024
1 parent 006aa8d commit 9a2e4b2
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import sys

import mock
import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -205,7 +206,6 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# html_theme = 'default'
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
hhtml_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Expand Down
2 changes: 2 additions & 0 deletions mbuild/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# ruff: noqa: F401
# ruff: noqa: F403
"""mBuild: a hierarchical, component based molecule builder."""

from mbuild.box import Box
Expand Down
1 change: 1 addition & 0 deletions mbuild/lib/atoms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""mBuild library of atoms."""

from mbuild.lib.atoms.c3 import C3
Expand Down
1 change: 1 addition & 0 deletions mbuild/lib/bulk_materials/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""mBuild bulk materials library."""

from mbuild.lib.bulk_materials.amorphous_silica_bulk import AmorphousSilicaBulk
1 change: 1 addition & 0 deletions mbuild/lib/moieties/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""mBuild library of common chemical moieties."""

from mbuild.lib.moieties.ch2 import CH2
Expand Down
1 change: 1 addition & 0 deletions mbuild/lib/molecules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""Library of molecules for mBuild."""

from mbuild.lib.molecules.ethane import Ethane
Expand Down
1 change: 1 addition & 0 deletions mbuild/lib/recipes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""Library of recipes for mBuild."""

from mbuild.lib.recipes.alkane import Alkane
Expand Down
1 change: 1 addition & 0 deletions mbuild/lib/surfaces/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: F401
"""mBuild surface library."""

from mbuild.lib.surfaces.amorphous_silica_surface import AmorphousSilicaSurface
Expand Down
12 changes: 2 additions & 10 deletions mbuild/tests/test_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,8 @@ def test_scaling(self):

def test_scaling_error_string(self):
with pytest.raises(TypeError):
pattern = mb.Random3DPattern(10, scale="tim")
mb.Random3DPattern(10, scale="tim")

def test_scaling_error_dict(self):
with pytest.raises(TypeError):
pattern = mb.Random3DPattern(10, scale={"name": "tim"})

def test_scaling_error_dict(self):
with pytest.raises(TypeError):
pattern = mb.Random3DPattern(10, scale={"name": "tim"})

def test_scaling_error_dict(self):
with pytest.raises(TypeError):
pattern = mb.Random3DPattern(10, scale={"name": "tim"})
mb.Random3DPattern(10, scale={"name": "tim"})
2 changes: 1 addition & 1 deletion mbuild/tests/test_silica_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def test_create_amorphous_silica_surface(self):

def test_amorphous_silica_surface_error(self):
with pytest.raises(ValueError):
surface = AmorphousSilicaSurface(surface_roughness=2)
AmorphousSilicaSurface(surface_roughness=2)

0 comments on commit 9a2e4b2

Please sign in to comment.