Skip to content

Commit 17bbd55

Browse files
authored
update pre-commit versions (#116)
1 parent 900b688 commit 17bbd55

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.github/workflows/github-actions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ jobs:
8686
runs-on: ubuntu-latest
8787
steps:
8888
- uses: actions/checkout@v4
89-
- uses: actions/setup-python@v3
90-
- uses: pre-commit/[email protected].0
89+
- uses: actions/setup-python@v5
90+
- uses: pre-commit/[email protected].1

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
99
- repo: https://github.com/PyCQA/isort
10-
rev: 5.12.0
10+
rev: 5.13.2
1111
hooks:
1212
- id: isort
1313
- repo: https://github.com/psf/black
14-
rev: '22.8.0'
14+
rev: '24.4.2'
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/PyCQA/flake8
18-
rev: '5.0.4'
18+
rev: '7.1.0'
1919
hooks:
2020
- id: flake8
2121
- repo: https://github.com/PyCQA/docformatter
22-
rev: 'v1.6.5'
22+
rev: 'v1.7.5'
2323
hooks:
2424
- id: docformatter
2525
- repo: https://github.com/pre-commit/mirrors-clang-format
26-
rev: 'v14.0.6' # Use the sha / tag you want to point at
26+
rev: 'v18.1.8' # Use the sha / tag you want to point at
2727
hooks:
2828
- id: clang-format
2929
files: \.(cu|cuh|h|cc|inl)$

legateboost/models/base_model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,4 @@ def __eq__(self, other: object) -> bool:
9999
pass
100100

101101
@abstractmethod
102-
def clear(self) -> None:
103-
...
102+
def clear(self) -> None: ... # noqa: E704

legateboost/test/test_estimator.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,19 @@ def test_subsample():
184184
}
185185
# Overfit the data and check if subsample improves the model
186186
subsample_eval_result = {}
187-
lb.LBRegressor(**params, subsample=0.5,).fit(
187+
lb.LBRegressor(
188+
**params,
189+
subsample=0.5,
190+
).fit(
188191
X_train,
189192
y_train,
190193
eval_result=subsample_eval_result,
191194
eval_set=[(X_test, y_test)],
192195
)
193196
full_eval_result = {}
194-
lb.LBRegressor(**params,).fit(
197+
lb.LBRegressor(
198+
**params,
199+
).fit(
195200
X_train, y_train, eval_result=full_eval_result, eval_set=[(X_test, y_test)]
196201
)
197202
assert (

0 commit comments

Comments
 (0)