Skip to content

Commit d5bfb4b

Browse files
arkqrestyled-commits
andauthoredJan 9, 2023
Add isort formatter to restyled configuration (project-chip#24148)
* Add isort formatter to restyled configuration * Sort Python imports using isort tool This commit also removes unused imports (reported by flake8) in few places. * Restyled by autopep8 * Restyled by isort * Update ZAP template for cluster Objects * Fix E402 suppressions in connection with isort * Fix imports which depend on modified sys path * Fix circular dependency when importing FabricAdmin * Restyled by isort Co-authored-by: Restyled.io <commits@restyled.io>
1 parent feca44a commit d5bfb4b

File tree

211 files changed

+763
-859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+763
-859
lines changed
 

‎.isort.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
line_length = 132

‎.restyled.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ restylers:
213213
- "**/*.sh"
214214
- "**/*.bash"
215215
- name: autopep8
216-
image: 'restyled/restyler-autopep8:v1.5.7'
216+
image: 'restyled/restyler-autopep8:v2.0.0'
217217
command:
218218
- autopep8
219219
- '--in-place'
@@ -222,3 +222,12 @@ restylers:
222222
- '**/*.py'
223223
interpreters:
224224
- python
225+
- name: isort
226+
image: 'restyled/restyler-isort:v5.11.2'
227+
command:
228+
- isort
229+
arguments: []
230+
include:
231+
- '**/*.py'
232+
interpreters:
233+
- python

0 commit comments

Comments
 (0)