Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.2...v0.8.1)

* Use Python <3.13 in docs builds

* Lint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Matthew W. Thompson <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and mattwthompson authored Dec 6, 2024
1 parent c0654e9 commit 5197b17
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: "monthly"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.1
hooks:
- id: ruff
- id: ruff-format
2 changes: 1 addition & 1 deletion devtools/conda-envs/docs_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: openff-units-test
channels:
- conda-forge
dependencies:
- python
- python <3.13
- pip
- numpy
- pint >=0.20.1
Expand Down
4 changes: 2 additions & 2 deletions openff/units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
__git_revision__ = versions["full-revisionid"]

__all__ = [
"unit",
"Quantity",
"Measurement",
"Quantity",
"Unit",
"ensure_quantity",
"unit",
]

_objects: dict[str, str] = {
Expand Down
2 changes: 1 addition & 1 deletion openff/units/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

__all__ = [
"MASSES",
"SYMBOLS",
"NUMBERS",
"SYMBOLS",
]

"""Mapping from atomic number to atomic mass"""
Expand Down
4 changes: 2 additions & 2 deletions openff/units/openmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
from openff.units.units import Quantity, Unit

__all__ = [
"ensure_quantity",
"from_openmm",
"to_openmm",
"openmm_unit_to_string",
"string_to_openmm_unit",
"ensure_quantity",
"to_openmm",
]

if has_package("openmm.unit"):
Expand Down
2 changes: 1 addition & 1 deletion openff/units/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

__all__ = (
"DEFAULT_UNIT_REGISTRY",
"Quantity",
"Measurement",
"Quantity",
"Unit",
"unit",
)
Expand Down
2 changes: 1 addition & 1 deletion stubs/openmm/unit/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Generator
from collections.abc import Generator

import numpy
from openmm.unit.baseunit import BaseUnit
Expand Down

0 comments on commit 5197b17

Please sign in to comment.