Skip to content

Commit 60d659e

Browse files
[pre-commit.ci] pre-commit autoupdate (#146)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2bb25fd commit 60d659e

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
args: [--preview, --select=CPY]
1414
- id: ruff-format
1515
- repo: https://github.com/tox-dev/pyproject-fmt
16-
rev: v2.11.1
16+
rev: v2.12.1
1717
hooks:
1818
- id: pyproject-fmt
1919
- repo: https://github.com/biomejs/pre-commit

pyproject.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ urls.Issues = "https://github.com/flying-sheep/session-info2/issues"
5656
urls.Source = "https://github.com/flying-sheep/session-info2"
5757
scripts.session-info = "session_info2.cli:main"
5858

59-
[tool.hatch.version]
60-
source = "vcs"
61-
62-
[[tool.hatch.envs.hatch-test.matrix]]
63-
python = [ "3.10", "3.11", "3.12", "3.13" ]
64-
deps = [ "all", "min" ]
59+
[tool.hatch.envs.docs]
60+
installer = "uv"
61+
features = [ "docs" ]
62+
scripts.build = "sphinx-build -W --keep-going -b html docs docs/_build/html {args}"
6563

6664
[tool.hatch.envs.hatch-test]
6765
default-args = [ ]
@@ -71,6 +69,10 @@ overrides.matrix.deps.features = [
7169
{ if = [ "all" ], value = "jupyter" },
7270
]
7371

72+
[[tool.hatch.envs.hatch-test.matrix]]
73+
python = [ "3.10", "3.11", "3.12", "3.13" ]
74+
deps = [ "all", "min" ]
75+
7476
[tool.hatch.envs.notebook]
7577
# installer = "uv" # https://github.com/astral-sh/uv/issues/6032
7678
features = [ "notebook" ]
@@ -79,10 +81,8 @@ scripts.install-kernel = "python -m ipykernel install --user --name=session-info
7981

8082
[tool.hatch.metadata.hooks.docstring-description]
8183

82-
[tool.hatch.envs.docs]
83-
installer = "uv"
84-
features = [ "docs" ]
85-
scripts.build = "sphinx-build -W --keep-going -b html docs docs/_build/html {args}"
84+
[tool.hatch.version]
85+
source = "vcs"
8686

8787
[tool.ruff]
8888
lint.select = [ "ALL" ]
@@ -134,19 +134,19 @@ filterwarnings = [
134134
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil",
135135
]
136136

137-
[tool.coverage.run]
138-
source_pkgs = [ "session_info2", "tests" ]
139-
branch = true
140-
parallel = true
141-
omit = [ ]
142-
143137
[tool.coverage.paths]
144138
session_info2 = [ "src/session_info2", "*/session-info2/src/session_info2" ]
145139
tests = [ "tests", "*/session-info2/tests" ]
146140

147141
[tool.coverage.report]
148142
exclude_lines = [ "no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:" ]
149143

144+
[tool.coverage.run]
145+
source_pkgs = [ "session_info2", "tests" ]
146+
branch = true
147+
parallel = true
148+
omit = [ ]
149+
150150
[tool.mypy]
151151
strict = true
152152
explicit_package_bases = true

0 commit comments

Comments
 (0)