Skip to content

Commit e5df43d

Browse files
Update dev dependencies (#561)
* Update dev dependencies * Apply ruff fix * Update setup-uv action * Remove specific uv version from CI
1 parent 1a4466a commit e5df43d

File tree

8 files changed

+16
-23
lines changed

8 files changed

+16
-23
lines changed

.github/workflows/ci-dev.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Install uv
20-
uses: astral-sh/setup-uv@v5
20+
uses: astral-sh/setup-uv@v6
2121
with:
22-
version: "latest"
2322
python-version: ${{ matrix.python-version }}
2423

2524
- name: Install dependencies

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: Install uv
18-
uses: astral-sh/setup-uv@v5
18+
uses: astral-sh/setup-uv@v6
1919
with:
2020
version: "0.6.2"
2121
python-version: ${{ matrix.python-version }}
@@ -94,9 +94,8 @@ jobs:
9494
<(sed -nr '/automodule/{s/.*::\s*//;p}' docs/source/apidoc/* | sort)
9595
9696
- name: Install uv
97-
uses: astral-sh/setup-uv@v5
97+
uses: astral-sh/setup-uv@v6
9898
with:
99-
version: "0.6.2"
10099
python-version: "3.12"
101100

102101
- name: Install pandoc
@@ -117,9 +116,8 @@ jobs:
117116
- uses: actions/checkout@v4
118117

119118
- name: Install uv
120-
uses: astral-sh/setup-uv@v5
119+
uses: astral-sh/setup-uv@v6
121120
with:
122-
version: "0.6.2"
123121
python-version: "3.12"
124122

125123
- name: Install dependencies

.github/workflows/mac.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v5
19+
uses: astral-sh/setup-uv@v6
2020
with:
21-
version: "0.6.2"
2221
python-version: ${{ matrix.python-version }}
2322

2423
- name: Install "all" dependencies

.github/workflows/publish-on-pypi.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ jobs:
2828
uses: pandoc/actions/setup@v1
2929

3030
- name: Install uv
31-
uses: astral-sh/setup-uv@v5
31+
uses: astral-sh/setup-uv@v6
3232
with:
33-
version: "0.6.2"
3433
python-version: "3.12"
3534

3635
- name: Install dependencies
@@ -66,9 +65,8 @@ jobs:
6665
uses: actions/checkout@v4
6766

6867
- name: Install uv
69-
uses: astral-sh/setup-uv@v5
68+
uses: astral-sh/setup-uv@v6
7069
with:
71-
version: "0.6.2"
7270
python-version: "3.12"
7371

7472
- name: Install dependencies

.github/workflows/windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: Install uv
18-
uses: astral-sh/setup-uv@v5
18+
uses: astral-sh/setup-uv@v6
1919
with:
20-
version: "0.6.2"
2120
python-version: ${{ matrix.python-version }}
2221
prune-cache: false
2322

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# pre-commit install
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v5.0.0
66
hooks:
77
- id: end-of-file-fixer
88
- id: mixed-line-ending
@@ -11,16 +11,16 @@ repos:
1111

1212
- repo: https://github.com/astral-sh/ruff-pre-commit
1313
# Ruff version.
14-
rev: v0.9.3
14+
rev: v0.11.13
1515
hooks:
1616
# Run the linter.
17-
- id: ruff
17+
- id: ruff-check
1818
args: [ --fix ]
1919
# Run the formatter.
2020
- id: ruff-format
2121

2222
- repo: https://github.com/numpy/numpydoc
23-
rev: v1.6.0
23+
rev: v1.8.0
2424
hooks:
2525
- id: numpydoc-validation
2626
files: ^janus_core/

janus_core/calculations/md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ def _write_header(self) -> None:
12151215
"ascii",
12161216
file=stats_file,
12171217
units=self.stats_units,
1218-
**{key: () for key in self.stats_units},
1218+
**dict.fromkeys(self.stats_units, ()),
12191219
)
12201220

12211221
def _write_stats_file(self) -> None:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ dev = [
116116
"pgtest<2.0.0,>=1.3.2",
117117
"pytest<9.0,>=8.0",
118118
"pytest-cov<5.0.0,>=4.1.0",
119-
"tox-uv<2.0,>=1.25.0",
119+
"tox-uv<2.0,>=1.26.0",
120120
"wheel<1.0,>=0.42",
121121
]
122122

@@ -136,8 +136,8 @@ docs = [
136136
]
137137

138138
pre-commit = [
139-
"pre-commit<4.0.0,>=3.6.0",
140-
"ruff<1.0.0,>=0.9.3",
139+
"pre-commit<5.0.0,>=4.2.0",
140+
"ruff<1.0.0,>=0.11.13",
141141
]
142142

143143
[build-system]

0 commit comments

Comments
 (0)