python-tuf/docs
Lukas Puehringer 5a626ca4b4 Require black and isort in tuf/api/* via tox
Configure lint build in tox.ini to check if code in tuf/api/* is
formatted according to black and isort style rules:
https://black.readthedocs.io/en/stable/the_black_code_style.html
https://pycqa.github.io/isort/

In addition to our new style guide (#1128) and corresponding linter
configuration, requiring auto-formatting should help to further
reduce reviewing effort. The auto-formatter black was chosen for
the following reasons:
- It seems to be the most popular formatter in the Python ecosystem
- It is well documented including integration instructions with
  most of the tools we use (git, GitHub Actions, pylint, a range of
  editors, pyproject.toml #1161)
- It checks that the reformatted code produces a valid AST that is
  equivalent to the original
- It has almost no ways of customization, which means no
  customization effort required, and more (cross-project) style
  uniformity, lowering contribution barriers
- It converts single to double quotes, where reasonable, which is
  exactly what we recommend
- The style choices it makes seem generally reasonable and don't
 conflict with our style guide, except for favoring hanging over
 aligned indentation, which is the opposite of what we recommend.
 But we are willing to update the adapt our style guide.

Auto-format pre-commit configuration will be added in a subsequent
commit.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-12 18:41:13 +01:00
..
adr Add style guide usage instructions to ADR0005 2020-12-04 10:50:36 +01:00
images Add banner_readme.png 2018-01-23 16:36:51 -05:00
latex Fix some typos in docs 2019-02-25 17:00:26 +07:00
papers Add Mercury paper and entry in README.rst 2017-08-31 10:13:05 -04:00
AUTHORS.txt Explaining GOVERNANCE structure to better match CNCF graduation ask 2018-10-11 10:50:47 -04:00
CHANGELOG.md Prepare v0.17.0 release 2021-02-25 10:49:12 +00:00
CLI.md Add python 3 use case 2020-06-10 06:30:23 -05:00
CODE-OF-CONDUCT.md Move docs to the docs/ directory 2018-01-24 10:57:01 -05:00
CONTRIBUTORS.rst Docs: change the editable venv installation order 2021-02-02 15:10:42 +02:00
GETTING_STARTED.rst DOC: collapse CLI_EXAMPLES.md into CLI.md 2019-04-08 11:54:10 -04:00
GOVERNANCE.md Require black and isort in tuf/api/* via tox 2021-03-12 18:41:13 +01:00
INSTALLATION.rst Fix typo in section "Release Verification" 2019-12-20 10:06:44 +01:00
MAINTAINERS.txt MAINTAINERS: Add myself 2021-01-18 12:30:56 +02:00
METADATA.md Update docs/METADATA.md to reflect recent spec change 2020-03-11 11:35:37 +00:00
OVERVIEW.rst Update deprecated links in docs 2019-02-26 08:58:59 +07:00
QUICKSTART.md Add securesystemslib[color] to packages installed in the tutorial 2020-02-18 15:05:13 +00:00
RELEASE.md Update release docs 2020-10-05 11:22:08 +01:00
ROADMAP.md DOC: Update the outdated ROADMAP.md 2019-02-26 11:22:47 -05:00
SECURITY.md Add slow retrieval disclaimer 2019-10-10 16:43:46 +02:00
TAP.rst Move docs to the docs/ directory 2018-01-24 10:57:01 -05:00
tuf-spec.0.9.txt Update link to historical tuf-spec.0.9.txt 2019-09-16 15:43:39 +02:00
tuf-spec.md Edit specifiation files to point to their new location 2017-10-11 15:49:47 -04:00
tuf-spec.txt Edit specifiation files to point to their new location 2017-10-11 15:49:47 -04:00
TUTORIAL.md Adopt sslib keygen interface encryption changes 2020-11-11 10:27:56 +01:00