mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
72ad6dc953
commit
f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue