[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -1,10 +1,13 @@
from setuptools.command.setopt import edit_config, option_base
from __future__ import annotations
from setuptools.command.setopt import edit_config
from setuptools.command.setopt import option_base
class saveopts(option_base):
"""Save command-line options to a file"""
description = "save supplied options to setup.cfg or other config file"
description = 'save supplied options to setup.cfg or other config file'
def run(self):
dist = self.distribution
@ -16,7 +19,7 @@ class saveopts(option_base):
continue # don't save our own options!
for opt, (src, val) in dist.get_option_dict(cmd).items():
if src == "command line":
if src == 'command line':
settings.setdefault(cmd, {})[opt] = val
edit_config(self.filename, settings, self.dry_run)