File tree 3 files changed +8
-4
lines changed 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,8 @@ CI/CD will check that new TUF code is formatted with `black
113
113
Auto-formatting can be done on the command line:
114
114
::
115
115
116
- $ # TODO: configure black and isort args in pyproject.toml (see #1161)
117
116
$ black tuf/api tuf/ngclient
118
- $ isort --line-length 80 --profile black -p tuf tuf/api
117
+ $ isort tuf/api tuf/ngclient
119
118
120
119
or via source code editor plugin
121
120
[`black <https://black.readthedocs.io/en/stable/editor_integration.html >`__,
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ line-length=80
9
9
check =" True"
10
10
diff =" True"
11
11
12
+ # Isort section
13
+ [tool .isort ]
14
+ profile =" black"
15
+ line_length =80
16
+ known_first_party = [" tuf" ]
17
+
12
18
# Pylint section
13
19
14
20
# Minimal pylint configuration file for Secure Systems Lab Python Style Guide:
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ commands =
40
40
changedir = {toxinidir}
41
41
commands =
42
42
# Use different configs for new (tuf/api/*) and legacy code
43
- # TODO: configure black and isort args in pyproject.toml (see #1161)
44
43
black tuf/api tuf/ngclient
45
- isort --check --diff --line-length 80 --profile black -p tuf tuf/api tuf/ngclient
44
+ isort --check --diff tuf/api tuf/ngclient
46
45
pylint -j 0 tuf/api tuf/ngclient --rcfile =pyproject.toml
47
46
48
47
# NOTE: Contrary to what the pylint docs suggest, ignoring full paths does
You can’t perform that action at this time.
0 commit comments