You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm troubleshooting a different issue and made a quick test file that might be useful. Save this snippet as flake8_sql_check.py
"""Test of flake8-sql.Test with: python -m flake8 flake8_sql_check.pyWhich should output at a minimum:flake8_sql_check.py:11:9: Q443 incorrect whitespace around commaflake8_sql_check.py:12:9: Q443 incorrect whitespace around commaflake8_sql_check.py:14:9: Q444 incorrect whitespace around equalsflake8_sql_check.py:15:9: Q444 incorrect whitespace around equalsIf needed, check installed extensions with: python -m flake8 --bug-report"""# https://github.com/pgjones/flake8-sql/blob/0ed4d53dfed6d243254d9065646b17cf8f49708d/tests/test_cases/whitespace.pyquery="SELECT ca,cb FROM tbl"# Q443query="SELECT ca ,cb FROM tbl"# Q443query="SELECT ca, cb FROM tbl"query="SELECT ca FROM tbl WHERE ca= 'b'"# Q444query="SELECT ca FROM tbl WHERE ca ='b'"# Q444query="SELECT ca FROM tbl WHERE ca = 'b'"query="SELECT ca FROM tbl WHERE ca != 'b'"
Hey @pgjones, How do I run this plugin so that Linting can take place fo specifically SQL?
When I run using flake8 and put the rule e.g Q440 linting does not take place.
I have tried and searched around but failed to get the correct commands.
Can you please update the readme for guidance on this issue?
The text was updated successfully, but these errors were encountered: