Skip to content

Commit cbc1679

Browse files
authored
[FIX] Make CI work again (update auto-formatting and test dependencies) (#348)
* [FMT] Apply latest black * [REQ] Allow using newer pytest * [REQ] Allow using newer pytest-benchmark * [DOC] Update changelog
1 parent 8aad99d commit cbc1679

9 files changed

Lines changed: 11 additions & 9 deletions

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Internal
1414

15+
- Fix CI (apply latest `black`, use latest `pytest` and `pytest-benchmark`)
16+
([PR](https://github.com/f-dangel/backpack/pull/348))
1517
- Improve efficiency of Hessian-vector product
1618
([PR](https://github.com/f-dangel/backpack/pull/341))
1719

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ requires-python = ">=3.9"
4747
test = [
4848
"scipy",
4949
"numpy<2",
50-
"pytest>=4.5.0,<5.0.0",
51-
"pytest-benchmark>=3.2.2,<4.0.0",
50+
"pytest",
51+
"pytest-benchmark",
5252
"pytest-optional-tests>=0.1.1",
5353
"pytest-cov",
5454
"coveralls",

test/core/derivatives/activation_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"input_fn" (callable): Used for specifying input function
77
88
Optional entries:
9-
"target_fn" (callable): Fetches the groundtruth/target classes
9+
"target_fn" (callable): Fetches the groundtruth/target classes
1010
of regression/classification task
1111
"loss_function_fn" (callable): Loss function used in the model
1212
"device" [list(torch.device)]: List of devices to run the test on.

test/core/derivatives/pooling_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"input_fn" (callable): Used for specifying input function
66
77
Optional entries:
8-
"target_fn" (callable): Fetches the groundtruth/target classes
8+
"target_fn" (callable): Fetches the groundtruth/target classes
99
of regression/classification task
1010
"loss_function_fn" (callable): Loss function used in the model
1111
"device" [list(torch.device)]: List of devices to run the test on.

test/extensions/firstorder/batch_l2_grad/batchl2grad_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Test configurations to test batch_l2_grad
22
3-
The tests are taken from `test.extensions.firstorder.firstorder_settings`,
3+
The tests are taken from `test.extensions.firstorder.firstorder_settings`,
44
but additional custom tests can be defined here by appending it to the list.
55
"""
66

test/extensions/firstorder/sum_grad_squared/sumgradsquared_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Test configurations to test sum_grad_square
22
3-
The tests are taken from `test.extensions.firstorder.firstorder_settings`,
3+
The tests are taken from `test.extensions.firstorder.firstorder_settings`,
44
but additional custom tests can be defined here by appending it to the list.
55
"""
66

test/utils/evaluation_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize_training_false_recursive(module: Module) -> Module:
2424

2525

2626
def initialize_batch_norm_eval(
27-
module: Union[BatchNorm1d, BatchNorm2d, BatchNorm3d]
27+
module: Union[BatchNorm1d, BatchNorm2d, BatchNorm3d],
2828
) -> Union[BatchNorm1d, BatchNorm2d, BatchNorm3d]:
2929
"""Initializes a BatchNorm module in evaluation mode.
3030

test/utils/test_conv_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
99
Optional entries:
10-
"target_fn" (callable): Fetches the groundtruth/target classes
10+
"target_fn" (callable): Fetches the groundtruth/target classes
1111
of regression/classification task
1212
"loss_function_fn" (callable): Loss function used in the model
1313
"device" [list(torch.device)]: List of devices to run the test on.

test/utils/test_conv_transpose_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"input_fn" (callable): Used for specifying input function
55
66
Optional entries:
7-
"target_fn" (callable): Fetches the groundtruth/target classes
7+
"target_fn" (callable): Fetches the groundtruth/target classes
88
of regression/classification task
99
"loss_function_fn" (callable): Loss function used in the model
1010
"device" [list(torch.device)]: List of devices to run the test on.

0 commit comments

Comments
 (0)