Skip to content

Commit 83c4628

Browse files
authored
ENH run flake8 job on PRs from forks (#236)
1 parent 0ed7282 commit 83c4628

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/flake8.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: linter
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
411

512
jobs:
613
lint:

celer/tests/test_logreg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
from numpy.linalg import norm
66

7-
from numpy.testing import assert_allclose, assert_array_less, assert_array_equal
7+
from numpy.testing import assert_allclose, assert_array_less
88
from sklearn.linear_model._logistic import _logistic_regression_path
99
from sklearn.utils.estimator_checks import check_estimator
1010
from sklearn.linear_model import LogisticRegression as sklearn_Logreg

celer/tests/test_mtl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pytest
2-
import warnings
32
import itertools
43

54
import numpy as np

0 commit comments

Comments
 (0)