style: Auto-format 48 files with ruff format
- Fixed formatting to comply with ruff standards - No functional changes, only formatting/style - Completes CI/CD pipeline formatting requirements
This commit is contained in:
@@ -52,6 +52,7 @@ PARSERS = [
|
||||
QualityParser(),
|
||||
]
|
||||
|
||||
|
||||
def register_parsers(subparsers):
|
||||
"""Register all subcommand parsers.
|
||||
|
||||
@@ -64,6 +65,7 @@ def register_parsers(subparsers):
|
||||
for parser_instance in PARSERS:
|
||||
parser_instance.create_parser(subparsers)
|
||||
|
||||
|
||||
def get_parser_names():
|
||||
"""Get list of all subcommand names.
|
||||
|
||||
@@ -72,6 +74,7 @@ def get_parser_names():
|
||||
"""
|
||||
return [p.name for p in PARSERS]
|
||||
|
||||
|
||||
__all__ = [
|
||||
"SubcommandParser",
|
||||
"PARSERS",
|
||||
|
||||
@@ -9,6 +9,7 @@ Includes preset system support (Issue #268).
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.analyze import add_analyze_arguments
|
||||
|
||||
|
||||
class AnalyzeParser(SubcommandParser):
|
||||
"""Parser for analyze subcommand."""
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
from abc import ABC, abstractmethod
|
||||
import argparse
|
||||
|
||||
|
||||
class SubcommandParser(ABC):
|
||||
"""Base class for subcommand parsers.
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class ConfigParser(SubcommandParser):
|
||||
"""Parser for config subcommand."""
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import argparse
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.create import add_create_arguments
|
||||
|
||||
|
||||
class CreateParser(SubcommandParser):
|
||||
"""Parser for create subcommand with multi-mode help."""
|
||||
|
||||
@@ -54,45 +55,45 @@ Presets: -p quick (1-2min) | -p standard (5-10min) | -p comprehensive (20-60min)
|
||||
"""
|
||||
# Add all arguments in 'default' mode (universal only)
|
||||
# This keeps help text clean and focused
|
||||
add_create_arguments(parser, mode='default')
|
||||
add_create_arguments(parser, mode="default")
|
||||
|
||||
# Add hidden help mode flags
|
||||
# These won't show in default help but can be used to get source-specific help
|
||||
parser.add_argument(
|
||||
'--help-web',
|
||||
action='store_true',
|
||||
help='Show web scraping specific options',
|
||||
dest='_help_web'
|
||||
"--help-web",
|
||||
action="store_true",
|
||||
help="Show web scraping specific options",
|
||||
dest="_help_web",
|
||||
)
|
||||
parser.add_argument(
|
||||
'--help-github',
|
||||
action='store_true',
|
||||
help='Show GitHub repository specific options',
|
||||
dest='_help_github'
|
||||
"--help-github",
|
||||
action="store_true",
|
||||
help="Show GitHub repository specific options",
|
||||
dest="_help_github",
|
||||
)
|
||||
parser.add_argument(
|
||||
'--help-local',
|
||||
action='store_true',
|
||||
help='Show local codebase specific options',
|
||||
dest='_help_local'
|
||||
"--help-local",
|
||||
action="store_true",
|
||||
help="Show local codebase specific options",
|
||||
dest="_help_local",
|
||||
)
|
||||
parser.add_argument(
|
||||
'--help-pdf',
|
||||
action='store_true',
|
||||
help='Show PDF extraction specific options',
|
||||
dest='_help_pdf'
|
||||
"--help-pdf",
|
||||
action="store_true",
|
||||
help="Show PDF extraction specific options",
|
||||
dest="_help_pdf",
|
||||
)
|
||||
parser.add_argument(
|
||||
'--help-advanced',
|
||||
action='store_true',
|
||||
help='Show advanced/rare options',
|
||||
dest='_help_advanced'
|
||||
"--help-advanced",
|
||||
action="store_true",
|
||||
help="Show advanced/rare options",
|
||||
dest="_help_advanced",
|
||||
)
|
||||
parser.add_argument(
|
||||
'--help-all',
|
||||
action='store_true',
|
||||
help='Show all available options (120+ flags)',
|
||||
dest='_help_all'
|
||||
"--help-all",
|
||||
action="store_true",
|
||||
help="Show all available options (120+ flags)",
|
||||
dest="_help_all",
|
||||
)
|
||||
|
||||
def register(self, subparsers):
|
||||
@@ -104,16 +105,14 @@ Presets: -p quick (1-2min) | -p standard (5-10min) | -p comprehensive (20-60min)
|
||||
Returns:
|
||||
Configured ArgumentParser for this subcommand
|
||||
"""
|
||||
|
||||
# Custom formatter that preserves line breaks
|
||||
class NoWrapFormatter(argparse.RawDescriptionHelpFormatter):
|
||||
def _split_lines(self, text, width):
|
||||
return text.splitlines()
|
||||
|
||||
parser = subparsers.add_parser(
|
||||
self.name,
|
||||
help=self.help,
|
||||
description=self.description,
|
||||
formatter_class=NoWrapFormatter
|
||||
self.name, help=self.help, description=self.description, formatter_class=NoWrapFormatter
|
||||
)
|
||||
self.add_arguments(parser)
|
||||
return parser
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone enhance_skill_local module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.enhance import add_enhance_arguments
|
||||
|
||||
|
||||
class EnhanceParser(SubcommandParser):
|
||||
"""Parser for enhance subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class EnhanceStatusParser(SubcommandParser):
|
||||
"""Parser for enhance-status subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class EstimateParser(SubcommandParser):
|
||||
"""Parser for estimate subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone github_scraper module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.github import add_github_arguments
|
||||
|
||||
|
||||
class GitHubParser(SubcommandParser):
|
||||
"""Parser for github subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class InstallAgentParser(SubcommandParser):
|
||||
"""Parser for install-agent subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class InstallParser(SubcommandParser):
|
||||
"""Parser for install subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class MultilangParser(SubcommandParser):
|
||||
"""Parser for multilang subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone package_skill module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.package import add_package_arguments
|
||||
|
||||
|
||||
class PackageParser(SubcommandParser):
|
||||
"""Parser for package subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone pdf_scraper module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.pdf import add_pdf_arguments
|
||||
|
||||
|
||||
class PDFParser(SubcommandParser):
|
||||
"""Parser for pdf subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class QualityParser(SubcommandParser):
|
||||
"""Parser for quality subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class ResumeParser(SubcommandParser):
|
||||
"""Parser for resume subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone doc_scraper module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.scrape import add_scrape_arguments
|
||||
|
||||
|
||||
class ScrapeParser(SubcommandParser):
|
||||
"""Parser for scrape subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class StreamParser(SubcommandParser):
|
||||
"""Parser for stream subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class TestExamplesParser(SubcommandParser):
|
||||
"""Parser for extract-test-examples subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone unified_scraper module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.unified import add_unified_arguments
|
||||
|
||||
|
||||
class UnifiedParser(SubcommandParser):
|
||||
"""Parser for unified subcommand."""
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from .base import SubcommandParser
|
||||
|
||||
|
||||
class UpdateParser(SubcommandParser):
|
||||
"""Parser for update subcommand."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ consistency with the standalone upload_skill module.
|
||||
from .base import SubcommandParser
|
||||
from skill_seekers.cli.arguments.upload import add_upload_arguments
|
||||
|
||||
|
||||
class UploadParser(SubcommandParser):
|
||||
"""Parser for upload subcommand."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user