summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorr-richmond <rrichmond.gh@gmail.com>2020-07-05 09:52:43 -0700
committerr-richmond <rrichmond.gh@gmail.com>2020-07-05 09:52:43 -0700
commit48a2319110e52a5c05beeab2a479e3191122e893 (patch)
tree12b344e6e3671e1d956b45709a2732a70bb3d048 /scripts
parentc22423ecab95b3b0a95740dbcd79b88c6ed1abe8 (diff)
downloadisort-48a2319110e52a5c05beeab2a479e3191122e893.tar.gz
black format to 100 line length
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_config_option_docs.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/scripts/build_config_option_docs.py b/scripts/build_config_option_docs.py
index 9f3996cb..a1d43f43 100755
--- a/scripts/build_config_option_docs.py
+++ b/scripts/build_config_option_docs.py
@@ -8,9 +8,7 @@ from isort.main import _build_arg_parser
from isort.settings import _DEFAULT_SETTINGS as config
OUTPUT_FILE = os.path.abspath(
- os.path.join(
- os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/options.md"
- )
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/options.md")
)
MD_NEWLINE = " "
HUMAN_NAME = {"py_version": "Python Version", "vn": "Version Number", "str": "String"}
@@ -44,11 +42,7 @@ class ConfigOption:
example_cli: str = ""
def __post_init__(self):
- if (
- self.example_cfg == ""
- and self.example_pyproject_toml == ""
- and self.example_cli == ""
- ):
+ if self.example_cfg == "" and self.example_pyproject_toml == "" and self.example_cli == "":
self.example_section = "**No Examples**"
else:
if self.example_cfg == "":
@@ -176,17 +170,12 @@ def config_options() -> Generator[ConfigOption, None, None]:
extra_kwargs["description"] = cli.help
yield ConfigOption(
- name=name,
- default=cli.default,
- cli_options=cli.option_strings,
- **extra_kwargs,
+ name=name, default=cli.default, cli_options=cli.option_strings, **extra_kwargs,
)
def document_text() -> str:
- return (
- f"{HEADER}{''.join(str(config_option) for config_option in config_options())}"
- )
+ return f"{HEADER}{''.join(str(config_option) for config_option in config_options())}"
def write_document():