Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Rule_Special_Characters_In_Names
- Loading branch information
Showing
8 changed files
with
127 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
"""Elements which wrap the sqlfluff core library for public use.""" | ||
|
||
# flake8: noqa: F401 | ||
|
||
# Expose the simple api | ||
from sqlfluff.api.simple import lint, fix, parse, APIParsingError | ||
from sqlfluff.api.info import list_rules, list_dialects | ||
|
||
__all__ = ( | ||
"lint", | ||
"fix", | ||
"parse", | ||
"APIParsingError", | ||
"list_rules", | ||
"list_dialects", | ||
) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
"""Linter class and helper classes.""" | ||
|
||
# flake8: noqa: F401 | ||
|
||
from sqlfluff.core.linter.common import RuleTuple, ParsedString, NoQaDirective | ||
from sqlfluff.core.linter.linted_file import LintedFile | ||
from sqlfluff.core.linter.linting_result import LintingResult | ||
from sqlfluff.core.linter.linter import Linter | ||
|
||
__all__ = ( | ||
"RuleTuple", | ||
"ParsedString", | ||
"NoQaDirective", | ||
"LintedFile", | ||
"LintingResult", | ||
"Linter", | ||
) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
"""Definitions of grammars.""" | ||
|
||
# flake8: noqa: F401 | ||
|
||
from sqlfluff.core.parser.grammar.base import Ref, Anything, Nothing | ||
from sqlfluff.core.parser.grammar.anyof import AnyNumberOf, OneOf, OptionallyBracketed | ||
from sqlfluff.core.parser.grammar.delimited import Delimited | ||
from sqlfluff.core.parser.grammar.greedy import GreedyUntil, StartsWith | ||
from sqlfluff.core.parser.grammar.sequence import Sequence, Bracketed | ||
from sqlfluff.core.parser.grammar.conditional import Conditional | ||
|
||
__all__ = ( | ||
"Ref", | ||
"Anything", | ||
"Nothing", | ||
"AnyNumberOf", | ||
"OneOf", | ||
"OptionallyBracketed", | ||
"Delimited", | ||
"GreedyUntil", | ||
"StartsWith", | ||
"Sequence", | ||
"Bracketed", | ||
"Conditional", | ||
) |
This file contains 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
This file contains 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