Commit 706d174
authored
Merge pull request #1186 from dimaqq/chore-ruff
#1186
What this PR does
In short, we'll be relying on ruff via pre-commit as opposed to flake8 via tox.
- switches from flake8 to ruff
- reformats the source code
- reformats the docstrings where safe, conservatively
- resolves ruff complaints where that's straightforward
- silences with a `FIXME` where public API could break or code change is not obvious or where too much manual work is required, those can be fixed in separate PRs
- updates the CI and docs for the above
Check list
- [x] pre-commit config
- [x] ruff over the codebase
- [x] resolve or silence errors
- [x] kill old linter and github actions
- [x] GitHub actions to check pre-commit
- [x] run pre-commit after codegen
- [x] add to docs205 files changed
Lines changed: 41601 additions & 27850 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- debian
- docs
- _extensions
- narrative
- examples
- charms/ubuntu
- k8s-local-bundle
- juju
- client
- proxy
- kubernetes
- scripts
- tests
- bundle
- charm-folder-symlink
- charm-secret
- src
- integration
- bundle
- test-overlays
- charm-assumes
- charm-base-charmcraft-yaml
- file-resource-charm
- unit
- validate
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 10 | | |
33 | 11 | | |
34 | 12 | | |
| |||
37 | 15 | | |
38 | 16 | | |
39 | 17 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 18 | + | |
| 19 | + | |
44 | 20 | | |
45 | 21 | | |
46 | | - | |
47 | | - | |
| 22 | + | |
| 23 | + | |
48 | 24 | | |
49 | 25 | | |
50 | 26 | | |
| |||
67 | 43 | | |
68 | 44 | | |
69 | 45 | | |
70 | | - | |
71 | 46 | | |
72 | 47 | | |
73 | 48 | | |
| |||
93 | 68 | | |
94 | 69 | | |
95 | 70 | | |
96 | | - | |
| 71 | + | |
97 | 72 | | |
98 | 73 | | |
99 | 74 | | |
| |||
161 | 136 | | |
162 | 137 | | |
163 | 138 | | |
164 | | - | |
| 139 | + | |
165 | 140 | | |
166 | 141 | | |
167 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
0 commit comments