Universally use double quotes for strings.

This commit is contained in:
yrriban 2025-08-01 02:05:05 -04:00
parent 7925281ceb
commit 1ee4ea4dc6
3 changed files with 33 additions and 33 deletions

View file

@ -11,8 +11,8 @@ class Base(Command):
def get_parser(self, prog_name):
parser = super().get_parser(prog_name)
parser.add_argument(
'--doom', default=pathlib.Path.home().joinpath("doom"))
parser.add_argument('--config-name', default='config.toml')
"--doom", default=pathlib.Path.home().joinpath("doom"))
parser.add_argument("--config-name", default="config.toml")
return parser
def init_base(self, parsed_args):

View file

@ -10,7 +10,7 @@ import tomlkit
class Wad(dcc.config.Base):
def get_parser(self, prog_name):
parser = super().get_parser(prog_name)
parser.add_argument('wad')
parser.add_argument("wad")
return parser
def wad_init(self, parsed_args):
@ -53,7 +53,7 @@ class Wad(dcc.config.Base):
def load_order(self):
wads = self._config.get("load_order")
if wads is None:
wads = sorted(self.pwad_path.glob('*.wad', case_sensitive=False))
wads = sorted(self.pwad_path.glob("*.wad", case_sensitive=False))
else:
wads = [self.pwad_path.joinpath(wad) for wad in wads]
return wads
@ -73,8 +73,8 @@ class Wad(dcc.config.Base):
class WadMap(Wad):
def get_parser(self, prog_name):
parser = super().get_parser(prog_name)
parser.add_argument('map')
parser.add_argument('-n', '--name', '--demo_name')
parser.add_argument("map")
parser.add_argument("-n", "--name", "--demo_name")
return parser
def run(self, parsed_args):
@ -99,7 +99,7 @@ class WadMap(Wad):
if len(wads) > 0:
args = args + ["-file"] + wads
dehs = sorted(self.pwad_path.glob('*.deh', case_sensitive=False))
dehs = sorted(self.pwad_path.glob("*.deh", case_sensitive=False))
if len(dehs) > 0:
args = args + ["-deh"] + dehs

View file

@ -1,42 +1,42 @@
from setuptools import find_packages
from setuptools import setup
PROJECT = 'dcc'
PROJECT = "dcc"
VERSION = '0.0.1'
VERSION = "0.0.1"
long_description = ''
long_description = ""
setup(
name=PROJECT,
version=VERSION,
description='Doom Command Center',
description="Doom Command Center",
long_description=long_description,
author='yrriban',
author_email='yrriban@gmail.com',
platforms=['Any'],
install_requires=['cliff'],
author="yrriban",
author_email="yrriban@gmail.com",
platforms=["Any"],
install_requires=["cliff"],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': ['dcc=dcc.main:main'],
'dcc': [
'play = dcc.play:Play',
'record = dcc.record:Record',
'rib = dcc.rib:RIB',
'fabricate = dcc.fabricate:Fabricate',
'put = dcc.put:Put',
'pb = dcc.pb:PB',
'ss = dcc.ss:SS',
'extract = dcc.extract:Extract',
'fetch = dcc.fetch:Fetch',
'text = dcc.text:Text',
'thumb = dcc.thumb:Thumb',
'dsda = dcc.dsda:DSDA',
'eureka = dcc.eureka:Eureka',
'ls = dcc.ls:List',
'configure = dcc.configure:Configure',
'concat = dcc.concat:Concat',
"console_scripts": ["dcc=dcc.main:main"],
"dcc": [
"play = dcc.play:Play",
"record = dcc.record:Record",
"rib = dcc.rib:RIB",
"fabricate = dcc.fabricate:Fabricate",
"put = dcc.put:Put",
"pb = dcc.pb:PB",
"ss = dcc.ss:SS",
"extract = dcc.extract:Extract",
"fetch = dcc.fetch:Fetch",
"text = dcc.text:Text",
"thumb = dcc.thumb:Thumb",
"dsda = dcc.dsda:DSDA",
"eureka = dcc.eureka:Eureka",
"ls = dcc.ls:List",
"configure = dcc.configure:Configure",
"concat = dcc.concat:Concat",
],
},
zip_safe=False,