Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -31,27 +31,27 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char

- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
hooks:
- id: black
additional_dependencies: [toml]

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
rev: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.12.2"
rev: "v0.13.3"
hooks:
- id: ruff
args:
- --fix

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.16.1"
rev: "v1.18.2"
hooks:
- id: mypy
args:
Expand Down
3 changes: 2 additions & 1 deletion docs/_ext/sphinx_ext_cosmology_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
except ImportError:
get_overloads = None

import cosmology
import cosmology.api

import cosmology

DOCS_MODULE_NAME = "cosmology.docs"


Expand Down
3 changes: 2 additions & 1 deletion tests/core/test_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

def test_imported():
"""This is a namespace package, so it should be importable."""
import cosmology # noqa: PLC0415
import cosmology.api # noqa: PLC0415

import cosmology # noqa: PLC0415

assert cosmology.__name__ == "cosmology"
assert cosmology.api.__name__ == "cosmology.api"