File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-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 <filename>
118
- $ isort --line-length 80 --profile black -p tuf tuf/api
117
+ $ isort <filename>
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 @@ -8,6 +8,13 @@ build-backend = "setuptools.build_meta"
8
8
[tool .black ]
9
9
line-length =80
10
10
11
+ # Isort section
12
+ # Read more here: https://pycqa.github.io/isort/docs/configuration/config_files.html
13
+ [tool .isort ]
14
+ profile =" black"
15
+ line_length =80
16
+ known_first_party = [" tuf" ]
17
+
11
18
# Pylint section
12
19
13
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 --check --diff 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