Commit 55ca5fc
authored
Flag unused imports in CI (deepinv#557)
* create pr
* enable rule F401 of ruff in continuous integration
* run ruff --fix on unused imports
* black
* run unsafe ruff fix
* black
* fix the 4 last errors manually
* disable ruff for an import with side effects
* black
* ignore ruff false positive for fixture
* black
* trigger ci
* ignore ruff false positive for (other) fixture
* apply ruff safe fix
ruff check --target-version "py310" --fix --select "F401"
* apply ruff unsafe fix
ruff check --target-version "py310" --preview --fix --unsafe-fixes --select "F401"
* black
* get rid of no-op
* add missing import
* add missing import
* restore __init__.py files from the main branch
git restore --source=upstream/main -- '**/__init__.py'
* disable the unused imports rules for init files
* apply ruff safe fix
ruff check --target-version "py310" --fix --select "F401"
* restore mistakenly removed imports1 parent b3743f0 commit 55ca5fc
File tree
52 files changed
+30
-78
lines changed- .github
- scripts
- workflows
- deepinv
- datasets
- loss
- adversarial
- metric
- models
- optim
- optim_iterators
- physics
- functional
- generator
- sampling
- sampling_iterators
- tests
- training
- transform
- utils
- examples
- adversarial-learning
- basics
- external-libraries
- optimization
- plug-and-play
- sampling
- self-supervised-learning
- unfolded
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+30
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
0 commit comments