Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename keyword files #1584

Merged
merged 7 commits into from Oct 11, 2021
Merged

Conversation

tunetheweb
Copy link
Member

Brief summary of the change made

Makes progress on #1575 by renaming dialect keyword files so they are listed besides their dialects in code editors and the like.

Are there any other side effects of this change that we should be aware of?

Could be some merge conflicts if anyone is working on changing these files but looks quiet at the mo so good time to do it!

Pull Request checklist

  • Please confirm you have completed any of the necessary steps below.

  • Included test cases to demonstrate any code changes, which may be one or more of the following:

    • .yml rule test cases in test/fixtures/rules/std_rule_cases.
    • .sql/.yml parser test cases in test/fixtures/parser (note YML files can be auto generated with python test/generate_parse_fixture_yml.py or by running tox locally).
    • Full autofix test cases in test/fixtures/linter/autofix.
    • Other.
  • Added appropriate documentation for the change.

  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

Copy link
Member

@barrywhart barrywhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion for a possibly cleaner way to organize things. Looks good overall.

I see the linter is failing.

src/sqlfluff/dialects/dialect_ansi.py Show resolved Hide resolved
@tunetheweb tunetheweb mentioned this pull request Oct 10, 2021
2 tasks
@codecov
Copy link

codecov bot commented Oct 11, 2021

Codecov Report

Merging #1584 (2558b18) into main (673c314) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1584   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          131       131           
  Lines         9175      9175           
=========================================
  Hits          9175      9175           
Impacted Files Coverage Δ
src/sqlfluff/dialects/dialect_ansi_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_bigquery_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_exasol_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_hive_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_postgres_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_tsql_keywords.py 100.00% <ø> (ø)
src/sqlfluff/dialects/dialect_ansi.py 100.00% <100.00%> (ø)
src/sqlfluff/dialects/dialect_bigquery.py 100.00% <100.00%> (ø)
src/sqlfluff/dialects/dialect_exasol.py 100.00% <100.00%> (ø)
src/sqlfluff/dialects/dialect_hive.py 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 673c314...2558b18. Read the comment docs.

@tunetheweb tunetheweb merged commit 25440a6 into sqlfluff:main Oct 11, 2021
ttomasz pushed a commit to ttomasz/sqlfluff that referenced this pull request Oct 12, 2021
* Rename keyword files

* Linting fixes

* Test update

* Linting fixes

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
@tunetheweb tunetheweb deleted the keyword-file-renames branch June 23, 2022 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants