Created
April 9, 2025 13:18
-
-
Save lukehinds/0a7f9c58aa9a62efa8c721d99003a7a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2025-04-09T13:16:53Z INFO ragrust::query] Processing query: Add --quiet CLI flag to SQLFluff | |
Add --quiet/-q flag option to Click command interface | |
Implement flag in main CLI entry point | |
Ensure flag is recognized across all relevant commands | |
Add type hints and docstrings for new parameter | |
{ | |
"code_snippets": [ | |
{ | |
"entity_id": "361af743-97a1-4961-b906-ddf4f1113239", | |
"content": "def cli_format(\n paths: tuple[str],\n bench: bool = False,\n fixed_suffix: str = \"\",\n logger: Optional[logging.Logger] = None,\n processes: Optional[int] = None,\n disable_progress_bar: Optional[bool] = False,\n persist_timing: Optional[str] = None,\n extra_config_path: Optional[str] = None,\n ignore_local_config: bool = False,\n stdin_filename: Optional[str] = None,\n **kwargs,\n) -> None:\n \"\"\"Autoformat SQL files.\n\n This effectively force applies `sqlfluff fix` with a known subset of fairly\n stable rules. Enabled rules are ignored, but rule exclusions (via CLI) or\n config are still respected.\n\n PATH is the path to a sql file or directory to lint. This can be either a\n file ('path/to/file.sql'), a path ('directory/of/sql/files'), a single ('-')\n character to indicate reading from *stdin* or a dot/blank ('.'/' ') which will\n be interpreted like passing the current working directory as a path argument.\n \"\"\"\n # some quick checks\n fixing_stdin = (\"-\",) == paths\n\n if kwargs.get(\"rules\"):\n click.echo(\n \"Specifying rules is not supported for sqlfluff format.\",\n )\n sys.exit(EXIT_ERROR)\n\n # Override rules for sqlfluff format\n kwargs[\"rules\"] = (\n # All of the capitalisation rules\n \"capitalisation,\"\n # All of the layout rules\n \"layout,\"\n # Safe rules from other groups\n \"ambiguous.union,\"\n \"convention.not_equal,\"\n \"convention.coalesce,\"\n \"convention.select_trailing_comma,\"\n \"convention.is_null,\"\n \"jinja.padding,\"\n \"structure.distinct,\"\n )\n\n config = get_config(\n extra_config_path, ignore_local_config, require_dialect=False, **kwargs\n )\n output_stream = make_output_stream(\n config, None, os.devnull if fixing_stdin else None\n )\n lnt, formatter = get_linter_and_formatter(config, output_stream)\n\n verbose = config.get(\"verbose\")\n progress_bar_configuration.disable_progress_bar = disable_progress_bar\n\n formatter.dispatch_config(lnt)\n\n # Set up logging.\n set_logging_level(\n verbosity=verbose,\n formatter=formatter,\n logger=logger,\n stderr_output=fixing_stdin,\n )\n\n with PathAndUserErrorHandler(formatter):\n # handle stdin case. should output formatted sql to stdout and nothing else.\n if fixing_stdin:\n if stdin_filename:\n lnt.config = lnt.config.make_child_from_path(stdin_filename)\n _stdin_fix(lnt, formatter, fix_even_unparsable=False)\n else:\n _paths_fix(\n lnt,\n formatter,\n paths,\n processes,\n fix_even_unparsable=False,\n fixed_suffix=fixed_suffix,\n bench=bench,\n show_lint_violations=False,\n persist_timing=persist_timing,\n )", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py", | |
"line_range": [ | |
1155, | |
1242 | |
], | |
"relevance_score": 0.57405937 | |
}, | |
{ | |
"entity_id": "92699734-3b37-4b0e-83b0-0954d203108d", | |
"content": "def test__cli__command_lint_empty_stdin():\n \"\"\"Check linting an empty file raises no exceptions.\n\n https://github.com/sqlfluff/sqlfluff/issues/4807\n \"\"\"\n invoke_assert_code(args=[lint, (\"-d\", \"ansi\", \"-\")], cli_input=\"\")", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/test/cli/commands_test.py", | |
"line_range": [ | |
380, | |
385 | |
], | |
"relevance_score": 0.5726985 | |
}, | |
{ | |
"entity_id": "a41864b6-82f7-44fa-9f47-71e87066dce3", | |
"content": "def cli() -> None:\n \"\"\"SQLFluff is a modular SQL linter for humans.\"\"\" # noqa D403", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py", | |
"line_range": [ | |
475, | |
476 | |
], | |
"relevance_score": 0.56155306 | |
}, | |
{ | |
"entity_id": "eacb303d-2f92-450d-988e-b66b855cfa20", | |
"content": "def test__cli__command_lint_skip_ignore_files():\n \"\"\"Check \"ignore file\" is skipped when --disregard-sqlfluffignores flag is set.\"\"\"\n runner = CliRunner()\n result = runner.invoke(\n lint,\n [\n \"test/fixtures/linter/sqlfluffignore/path_b/query_c.sql\",\n \"--disregard-sqlfluffignores\",\n ],\n )\n assert result.exit_code == 1\n assert \"LT12\" in result.stdout.strip()", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/test/cli/commands_test.py", | |
"line_range": [ | |
778, | |
789 | |
], | |
"relevance_score": 0.5465795 | |
}, | |
{ | |
"entity_id": "469a004a-4003-4cdb-a183-27b5ff8bc413", | |
"content": "def document_configuration(cls: type[\"BaseRule\"], **kwargs: Any) -> type[\"BaseRule\"]:\n \"\"\"Add a 'Configuration' section to a Rule docstring.\"\"\"\n rules_logger.warning(\n f\"{cls.__name__} uses the @document_configuration decorator \"\n \"which is deprecated in SQLFluff 2.0.0. Remove the decorator \"\n \"to resolve this warning.\"\n )\n return cls", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/core/rules/doc_decorators.py", | |
"line_range": [ | |
36, | |
43 | |
], | |
"relevance_score": 0.53584296 | |
}, | |
{ | |
"entity_id": "32dec159-a2c9-455c-8a2a-388f07872514", | |
"content": "def core_options(f: Callable) -> Callable:\n \"\"\"Add core operation options to commands via a decorator.\n\n These are applied to the main (but not all) cli commands like\n `parse`, `lint` and `fix`.\n \"\"\"\n # Only enable dialect completion if on version of click\n # that supports it\n if shell_completion_enabled:\n f = click.option(\n \"-d\",\n \"--dialect\",\n default=None,\n help=\"The dialect of SQL to lint\",\n shell_complete=dialect_shell_complete,\n )(f)\n else: # pragma: no cover\n f = click.option(\n \"-d\",\n \"--dialect\",\n default=None,\n help=\"The dialect of SQL to lint\",\n )(f)\n f = click.option(\n \"-t\",\n \"--templater\",\n default=None,\n help=\"The templater to use (default=jinja)\",\n type=click.Choice(\n # Use LazySequence so that we don't load templaters until required.\n LazySequence(\n lambda: [\n templater.name\n for templater in chain.from_iterable(\n get_plugin_manager().hook.get_templaters()\n )\n ]\n )\n ),\n )(f)\n f = click.option(\n \"-r\",\n \"--rules\",\n default=None,\n help=(\n \"Narrow the search to only specific rules. For example \"\n \"specifying `--rules LT01` will only search for rule `LT01` (Unnecessary \"\n \"trailing whitespace). Multiple rules can be specified with commas e.g. \"\n \"`--rules LT01,LT02` will specify only looking for violations of rule \"\n \"`LT01` and rule `LT02`.\"\n ),\n )(f)\n f = click.option(\n \"-e\",\n \"--exclude-rules\",\n default=None,\n help=(\n \"Exclude specific rules. For example \"\n \"specifying `--exclude-rules LT01` will remove rule `LT01` (Unnecessary \"\n \"trailing whitespace) from the set of considered rules. This could either \"\n \"be the allowlist, or the general set if there is no specific allowlist. \"\n \"Multiple rules can be specified with commas e.g. \"\n \"`--exclude-rules LT01,LT02` will exclude violations of rule \"\n \"`LT01` and rule `LT02`.\"\n ),\n )(f)\n f = click.option(\n \"--config\",\n \"extra_config_path\",\n default=None,\n help=(\n \"Include additional config file. By default the config is generated \"\n \"from the standard configuration files described in the documentation. \"\n \"This argument allows you to specify an additional configuration file that \"\n \"overrides the standard configuration files. N.B. cfg format is required.\"\n ),\n type=click.Path(),\n )(f)\n f = click.option(\n \"--ignore-local-config\",\n is_flag=True,\n help=(\n \"Ignore config files in default search path locations. \"\n \"This option allows the user to lint with the default config \"\n \"or can be used in conjunction with --config to only \"\n \"reference the custom config file.\"\n ),\n )(f)\n f = click.option(\n \"--encoding\",\n default=None,\n help=(\n \"Specify encoding to use when reading and writing files. Defaults to \"\n \"autodetect.\"\n ),\n )(f)\n f = click.option(\n \"-i\",\n \"--ignore\",\n default=None,\n help=(\n \"Ignore particular families of errors so that they don't cause a failed \"\n \"run. For example `--ignore parsing` would mean that any parsing errors \"\n \"are ignored and don't influence the success or fail of a run. \"\n \"`--ignore` behaves somewhat like `noqa` comments, except it \"\n \"applies globally. Multiple options are possible if comma separated: \"\n \"e.g. `--ignore parsing,templating`.\"\n ),\n )(f)\n f = click.option(\n \"--bench\",\n is_flag=True,\n help=\"Set this flag to engage the benchmarking tool output.\",\n )(f)\n f = click.option(\n \"--logger\",\n type=click.Choice(\n [\"templater\", \"lexer\", \"parser\", \"linter\", \"rules\", \"config\"],\n case_sensitive=False,\n ),\n help=\"Choose to limit the logging to one ofthe loggers.\",\n )(f)\n f = click.option(\n \"--disable-noqa\",\n is_flag=True,\n default=None,\n help=\"Set this flag to ignore inline noqa comments.\",\n )(f)\n f = click.option(\n \"--disable-noqa-except\",\n default=None,\n help=\"Ignore all but the listed rules inline noqa comments.\",\n )(f)\n f = click.option(\n \"--library-path\",\n default=None,\n help=(\n \"Override the `library_path` value from the [sqlfluff:templater:jinja]\"\n \" configuration value. Set this to 'none' to disable entirely.\"\n \" This overrides any values set by users in configuration files or\"\n \" inline directives.\"\n ),\n )(f)\n f = click.option(\n \"--stdin-filename\",\n default=None,\n help=(\n \"When using stdin as an input, load the configuration as if the contents\"\n \" of stdin was in a file in the listed location.\"\n \" This is useful for some editors that pass file contents from the editor\"\n \" that might not match the content on disk.\"\n ),\n type=click.Path(allow_dash=False),\n )(f)\n return f", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py", | |
"line_range": [ | |
174, | |
328 | |
], | |
"relevance_score": 0.53399956 | |
}, | |
{ | |
"entity_id": "5dc6207c-4105-42ee-8d5d-7ad68522e742", | |
"content": "def test_cli_fix_even_unparsable(\n method: str, fix_even_unparsable: bool, monkeypatch, tmpdir\n):\n \"\"\"Test the fix_even_unparsable option works from cmd line and config.\"\"\"\n sql_filename = \"fix_even_unparsable.sql\"\n sql_path = str(tmpdir / sql_filename)\n with open(sql_path, \"w\") as f:\n print(\n \"\"\"SELECT my_col\nFROM my_schema.my_table\nwhere processdate ! 3\n\"\"\",\n file=f,\n )\n options = [\n \"--dialect\",\n \"ansi\",\n \"--fixed-suffix=FIXED\",\n sql_path,\n ]\n if method == \"command-line\":\n if fix_even_unparsable:\n options.append(\"--FIX-EVEN-UNPARSABLE\")\n else:\n assert method == \"config-file\"\n with open(str(tmpdir / \".sqlfluff\"), \"w\") as f:\n print(\n f\"[sqlfluff]\\nfix_even_unparsable = {fix_even_unparsable}\",\n file=f,\n )\n # TRICKY: Switch current directory to the one with the SQL file. Otherwise,\n # the setting doesn't work. That's because SQLFluff reads it in\n # sqlfluff.cli.commands.fix(), prior to reading any file-specific settings\n # (down in sqlfluff.core.linter.Linter._load_raw_file_and_config()).\n monkeypatch.chdir(str(tmpdir))\n invoke_assert_code(\n ret_code=0 if fix_even_unparsable else 1,\n args=[\n fix,\n options,\n ],\n )\n fixed_path = str(tmpdir / \"fix_even_unparsableFIXED.sql\")\n if fix_even_unparsable:\n with open(fixed_path, \"r\") as f:\n fixed_sql = f.read()\n assert (\n fixed_sql\n == \"\"\"SELECT my_col\nFROM my_schema.my_table\nWHERE processdate ! 3\n\"\"\"\n )\n else:\n assert not os.path.isfile(fixed_path)", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/test/cli/commands_test.py", | |
"line_range": [ | |
1157, | |
1211 | |
], | |
"relevance_score": 0.53331923 | |
}, | |
{ | |
"entity_id": "e60a36a3-dcaf-49db-9425-c7452aae716c", | |
"content": "def __init__(\n self,\n configs: Optional[ConfigMappingType] = None,\n extra_config_path: Optional[str] = None,\n ignore_local_config: bool = False,\n overrides: Optional[ConfigMappingType] = None,\n plugin_manager: Optional[pluggy.PluginManager] = None,\n # Ideally a dialect should be set when config is read but sometimes\n # it might only be set in nested .sqlfluff config files, so allow it\n # to be not required.\n require_dialect: bool = True,\n ) -> None:\n self._extra_config_path = (\n extra_config_path # We only store this for child configs\n )\n self._ignore_local_config = (\n ignore_local_config # We only store this for child configs\n )\n # If overrides are provided, validate them early.\n if overrides:\n overrides = {\"core\": overrides}\n validate_config_dict(overrides, \"<provided overrides>\")\n # Stash overrides so we can pass them to child configs\n core_overrides = overrides[\"core\"] if overrides else None\n assert isinstance(core_overrides, dict) or core_overrides is None\n self._overrides = core_overrides\n\n # Fetch a fresh plugin manager if we weren't provided with one\n self._plugin_manager = plugin_manager or get_plugin_manager()\n\n defaults = nested_combine(*self._plugin_manager.hook.load_default_config())\n # If any existing configs are provided. Validate them:\n if configs:\n validate_config_dict(configs, \"<provided configs>\")\n self._configs = nested_combine(\n defaults, configs or {\"core\": {}}, overrides or {}\n )\n # Some configs require special treatment\n self._configs[\"core\"][\"color\"] = (\n False if self._configs[\"core\"].get(\"nocolor\", False) else None\n )\n # Handle inputs which are potentially comma separated strings\n self._handle_comma_separated_values()\n # Dialect and Template selection.\n _dialect = self._configs[\"core\"][\"dialect\"]\n assert _dialect is None or isinstance(_dialect, str)\n self._initialise_dialect(_dialect, require_dialect)\n\n self._configs[\"core\"][\"templater_obj\"] = self.get_templater()", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/core/config/fluffconfig.py", | |
"line_range": [ | |
88, | |
136 | |
], | |
"relevance_score": 0.52683467 | |
}, | |
{ | |
"entity_id": "4a3566f2-58e6-43b1-80f5-6f742ae00036", | |
"content": "def test__cli__command_fix_stdin_logging_to_stderr(monkeypatch):\n \"\"\"Check that logging goes to stderr when stdin is passed to fix.\"\"\"\n perfect_sql = \"select col from table\"\n\n class MockLinter(sqlfluff.core.Linter):\n @classmethod\n def lint_fix_parsed(cls, *args, **kwargs):\n cls._warn_unfixable(\"<FAKE CODE>\")\n return super().lint_fix_parsed(*args, **kwargs)\n\n monkeypatch.setattr(sqlfluff.cli.commands, \"Linter\", MockLinter)\n result = invoke_assert_code(\n args=[fix, (\"-\", \"--rules=LT02\", \"--dialect=ansi\")],\n cli_input=perfect_sql,\n )\n\n assert result.stdout == perfect_sql\n assert \"<FAKE CODE>\" in result.stderr", | |
"language": "python", | |
"entity_type": "Function", | |
"file_path": "/Users/lhinds/repos/sqlfluff/test/cli/commands_test.py", | |
"line_range": [ | |
1278, | |
1295 | |
], | |
"relevance_score": 0.52268314 | |
}, | |
{ | |
"entity_id": "4a16a310-ce56-415e-aec1-ab6563680357", | |
"content": "def __init__(\n self,\n configs: Optional[ConfigMappingType] = None,\n extra_config_path: Optional[str] = None,\n ignore_local_config: bool = False,\n overrides: Optional[ConfigMappingType] = None,\n plugin_manager: Optional[pluggy.PluginManager] = None,\n # Ideally a dialect should be set when config is read but sometimes\n # it might only be set in nested .sqlfluff config files, so allow it\n # to be not required.\n require_dialect: bool = True,\n ) -> None:\n self._extra_config_path = (\n extra_config_path # We only store this for child configs\n )\n self._ignore_local_config = (\n ignore_local_config # We only store this for child configs\n )\n # If overrides are provided, validate them early.\n if overrides:\n overrides = {\"core\": overrides}\n validate_config_dict(overrides, \"<provided overrides>\")\n # Stash overrides so we can pass them to child configs\n core_overrides = overrides[\"core\"] if overrides else None\n assert isinstance(core_overrides, dict) or core_overrides is None\n self._overrides = core_overrides\n\n # Fetch a fresh plugin manager if we weren't provided with one\n self._plugin_manager = plugin_manager or get_plugin_manager()\n\n defaults = nested_combine(*self._plugin_manager.hook.load_default_config())\n # If any existing configs are provided. Validate them:\n if configs:\n validate_config_dict(configs, \"<provided configs>\")\n self._configs = nested_combine(\n defaults, configs or {\"core\": {}}, overrides or {}\n )\n # Some configs require special treatment\n self._configs[\"core\"][\"color\"] = (\n False if self._configs[\"core\"].get(\"nocolor\", False) else None\n )\n # Handle inputs which are potentially comma separated strings\n self._handle_comma_separated_values()\n # Dialect and Template selection.\n _dialect = self._configs[\"core\"][\"dialect\"]\n assert _dialect is None or isinstance(_dialect, str)\n self._initialise_dialect(_dialect, require_dialect)\n\n self._configs[\"core\"][\"templater_obj\"] = self.get_templater()", | |
"language": "python", | |
"entity_type": "Method", | |
"file_path": "/Users/lhinds/repos/sqlfluff/src/sqlfluff/core/config/fluffconfig.py", | |
"line_range": [ | |
88, | |
136 | |
], | |
"relevance_score": 0.51836866 | |
} | |
], | |
"explanations": [ | |
"Function `cli_format` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py\n\nDocumentation:\n\nAutoformat SQL files.\n\n This effectively force applies `sqlfluff fix` with a known subset of fairly\n stable rules. Enabled rules are ignored, but rule exclusions (via CLI) or\n config are still respected.\n\n PATH is the path to a sql file or directory to lint. This can be either a\n file ('path/to/file.sql'), a path ('directory/of/sql/files'), a single ('-')\n character to indicate reading from *stdin* or a dot/blank ('.'/' ') which will\n be interpreted like passing the current working directory as a path argument.", | |
"Function `test__cli__command_lint_empty_stdin` in python from /Users/lhinds/repos/sqlfluff/test/cli/commands_test.py\n\nDocumentation:\n\nCheck linting an empty file raises no exceptions.\n\n https://github.com/sqlfluff/sqlfluff/issues/4807", | |
"Function `cli` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py\n\nDocumentation:\n\nSQLFluff is a modular SQL linter for humans.", | |
"Function `test__cli__command_lint_skip_ignore_files` in python from /Users/lhinds/repos/sqlfluff/test/cli/commands_test.py\n\nDocumentation:\n\nCheck \"ignore file\" is skipped when --disregard-sqlfluffignores flag is set.", | |
"Function `document_configuration` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/core/rules/doc_decorators.py\n\nDocumentation:\n\nAdd a 'Configuration' section to a Rule docstring.", | |
"Function `core_options` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/cli/commands.py\n\nDocumentation:\n\nAdd core operation options to commands via a decorator.\n\n These are applied to the main (but not all) cli commands like\n `parse`, `lint` and `fix`.", | |
"Function `test_cli_fix_even_unparsable` in python from /Users/lhinds/repos/sqlfluff/test/cli/commands_test.py\n\nDocumentation:\n\nTest the fix_even_unparsable option works from cmd line and config.", | |
"Function `__init__` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/core/config/fluffconfig.py\n\nDocumentation:", | |
"Function `test__cli__command_fix_stdin_logging_to_stderr` in python from /Users/lhinds/repos/sqlfluff/test/cli/commands_test.py\n\nDocumentation:\n\nCheck that logging goes to stderr when stdin is passed to fix.", | |
"Method `__init__` in python from /Users/lhinds/repos/sqlfluff/src/sqlfluff/core/config/fluffconfig.py\n\nDocumentation:" | |
], | |
"relationships": [ | |
{ | |
"from": "cli_format", | |
"relation_type": "DeclaredIn", | |
"to": "commands", | |
"explanation": "`cli_format` DeclaredIn `commands`" | |
}, | |
{ | |
"from": "test__cli__command_lint_empty_stdin", | |
"relation_type": "DeclaredIn", | |
"to": "commands_test", | |
"explanation": "`test__cli__command_lint_empty_stdin` DeclaredIn `commands_test`" | |
}, | |
{ | |
"from": "cli", | |
"relation_type": "DeclaredIn", | |
"to": "commands", | |
"explanation": "`cli` DeclaredIn `commands`" | |
}, | |
{ | |
"from": "test__cli__command_lint_skip_ignore_files", | |
"relation_type": "DeclaredIn", | |
"to": "commands_test", | |
"explanation": "`test__cli__command_lint_skip_ignore_files` DeclaredIn `commands_test`" | |
}, | |
{ | |
"from": "document_configuration", | |
"relation_type": "DeclaredIn", | |
"to": "doc_decorators", | |
"explanation": "`document_configuration` DeclaredIn `doc_decorators`" | |
}, | |
{ | |
"from": "core_options", | |
"relation_type": "DeclaredIn", | |
"to": "commands", | |
"explanation": "`core_options` DeclaredIn `commands`" | |
}, | |
{ | |
"from": "test_cli_fix_even_unparsable", | |
"relation_type": "DeclaredIn", | |
"to": "commands_test", | |
"explanation": "`test_cli_fix_even_unparsable` DeclaredIn `commands_test`" | |
}, | |
{ | |
"from": "__init__", | |
"relation_type": "DeclaredIn", | |
"to": "fluffconfig", | |
"explanation": "`__init__` DeclaredIn `fluffconfig`" | |
}, | |
{ | |
"from": "test__cli__command_fix_stdin_logging_to_stderr", | |
"relation_type": "DeclaredIn", | |
"to": "commands_test", | |
"explanation": "`test__cli__command_fix_stdin_logging_to_stderr` DeclaredIn `commands_test`" | |
}, | |
{ | |
"from": "__init__", | |
"relation_type": "DeclaredIn", | |
"to": "FluffConfig", | |
"explanation": "`__init__` DeclaredIn `FluffConfig`" | |
} | |
], | |
"context_overview": "Found 10 relevant code entities in languages: python (10)\nEntity types: Method (1), Function (9)", | |
"suggested_followups": [ | |
"Find where this code is used", | |
"Show me related code entities" | |
] | |
} | |
[2025-04-09T13:16:53Z INFO ragrust::cli] Getting LLM summary using Ollama with model gemma3:1b | |
LLM Summary: | |
{ | |
"summary": "The query focuses on configuration settings for a FluffConfig library, specifically related to defining a dialect and handling input values. The most important entities are the 'fluffconfig' method, which handles the initialization of the dialect and the handling of comma-separated values. The 'config' method is used to set the color of the 'core' element, and the 'plugin_manager' is used to fetch the default configuration. The 'core' element is used to define the color of the core element.", | |
"relevant_entities": ["4a16a310-ce56-415e-aec1-ab6563680357"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment