Skip to content

Commit ced7a10

Browse files
Release/0.8.0 (#216)
* Updated changelog * Bumped to 0.8.0 * Updated to use ruff formatter * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Restored pretty-format-json to precommit --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9652b05 commit ced7a10

File tree

10 files changed

+36
-37
lines changed

10 files changed

+36
-37
lines changed

.github/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
numpy==1.24.4
2-
scipy==1.10.1
3-
rowan==1.2
4-
pytest==7.4.2
5-
pytest-cov==4.1.0
61
hypothesis==6.86.2
72
matplotlib==3.7.3
83
miniball==1.2.0
4+
numpy==1.24.4
95
plato-draw==1.12.0
6+
pytest==7.4.2
7+
pytest-cov==4.1.0
8+
rowan==1.2
9+
scipy==1.10.1

.pre-commit-config.yaml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,24 @@ repos:
99
- id: trailing-whitespace
1010
exclude: '(?:setup.cfg.*|paper/.*)'
1111
- id: debug-statements
12+
- id: check-builtin-literals
13+
- id: check-executables-have-shebangs
1214
- id: pretty-format-json
1315
exclude: '\.ipynb$'
1416
args:
1517
- --indent
1618
- '4'
1719
- --no-sort-keys
18-
- id: check-builtin-literals
19-
- id: check-executables-have-shebangs
2020
- id: check-json
2121
- id: check-yaml
22+
- id: requirements-txt-fixer
2223
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.1.9
24+
rev: v0.2.2
2425
hooks:
26+
# Run the linter.
2527
- id: ruff
28+
types_or: [ python, pyi, jupyter ]
2629
args: [ --fix ]
27-
types_or: [python, pyi, jupyter]
28-
- repo: https://github.com/psf/black
29-
rev: '23.12.1'
30-
hooks:
31-
- id: black
32-
exclude: '(?:extern/.*)'
33-
- repo: https://github.com/nbQA-dev/nbQA
34-
rev: 1.7.1
35-
hooks:
36-
- id: nbqa-black
37-
args:
38-
- --nbqa-mutate
30+
# Run the formatter.
31+
- id: ruff-format
32+
types_or: [ python, pyi, jupyter ]

ChangeLog.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ This project adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html
33

44
v0.x.x - 20xx-xx-xx
55

6+
v0.8.0 - 2024-02-21
7+
68
Added
79
~~~~~
810

9-
- New `edge_lengths` method.
11+
- New ``edge_lengths`` method.
1012
- ``combine_simplices``, ``find_simplex_equations``, ``_find_face_centroids``,
1113
``find_coplanar_simplices``, ``_find_face_centroids``, and ``calculate_signed_volume``
1214
methods for the ConvexPolyhedron class.
1315
- ``simplices``, ``equations``, and ``face_centroids`` properties for the
1416
ConvexPolyhedron class.
1517
- Additional pytests for surface area, volume, centroid, moment of inertia, and equations properties.
16-
- Added ``to_hoomd`` export method for use with simulation tools
18+
- New ``to_hoomd`` and ``to_json`` export methods for use with simulation tools
1719

1820
Changed
1921
~~~~~~~

coxeter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121

2222
__all__ = ["families", "shapes", "from_gsd_type_shapes"]
2323

24-
__version__ = "0.7.0"
24+
__version__ = "0.8.0"

doc/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
autodocsumm
2+
furo
3+
jupyter
4+
matplotlib
5+
nbsphinx
16
numpy
27
rowan>=1.2
38
scipy
4-
jupyter
59
sphinx
6-
furo
710
sphinxcontrib-bibtex>=2.0.0
8-
autodocsumm
9-
nbsphinx
10-
matplotlib

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
author = "Vyas Ramasubramani"
2323

2424
# The full version, including alpha/beta/rc tags
25-
version = "0.7.0"
26-
release = "0.7.0"
25+
version = "0.8.0"
26+
release = "0.8.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "coxeter"
7-
version = "0.7.0"
7+
version = "0.8.0"
88
requires-python = ">=3.8"
99
description = "Tools for creating and manipulating shapes."
1010
readme = "README.rst"
@@ -70,6 +70,7 @@ select = [
7070
]
7171
ignore =[
7272
"D105", # Magic methods don't require documentation.
73+
"D107", # __init__ methods don't require documentation.
7374
]
7475

7576
[tool.ruff.pydocstyle]
@@ -85,3 +86,7 @@ known-first-party = ["conftest", "coxeter", "utils"]
8586
"setup.py" = ["D"]
8687
"doc/source/conf.py" = ["D"]
8788
"*ipynb" = ["B", "E", "F", "N", "W", "D"]
89+
90+
[tool.ruff.format]
91+
quote-style = "double"
92+
indent-style = "space"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.7.0
2+
current_version = 0.8.0
33
commit = False
44
tag = True
55
message = Bump up to version {new_version}.

tests/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pytest
2-
pytest-cov
31
hypothesis[numpy]
42
matplotlib
53
miniball
64
plato-draw
5+
pytest
6+
pytest-cov

tests/test_ellipsoid.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ def test_surface_area(a, b, c):
5959
# https://en.wikipedia.org/wiki/Ellipsoid#Approximate_formula
6060
p = 1.6075
6161
approx_surface = (
62-
4
63-
* np.pi
64-
* ((a**p * b**p + a**p * c**p + b**p * c**p) / 3) ** (1 / p)
62+
4 * np.pi * ((a**p * b**p + a**p * c**p + b**p * c**p) / 3) ** (1 / p)
6563
)
6664

6765
ellipsoid = Ellipsoid(a, b, c)

0 commit comments

Comments
 (0)