79 Commits

Author SHA1 Message Date
Cameron
6124c61a7c Write an implementation of the lexer in Rust (#7132)
Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
2025-10-23 21:49:35 +00:00
Danny Jones
e2e9202bf2 Update dbt CI matrix (#7196) 2025-10-19 21:32:42 +00:00
Danny Jones
f1ccddd45b Streamline release commands (#7005) 2025-09-20 21:31:53 +00:00
Danny Jones
03b010b890 Set up Docker development environment (#6826) 2025-04-19 11:09:45 +00:00
Alan Cruickshank
42a067a394 Update release instructions (#6751)
Co-authored-by: Alan Cruickshank <alan+git@a14k.co.uk>
2025-03-29 13:57:34 +00:00
Danny Jones
911a6eb3ef Drop support for Python 3.8 (#6743) 2025-03-23 11:57:47 +00:00
Danny Jones
f7da8fb487 Bump Python version in the docs and metadata (#6626) 2025-02-02 16:14:04 +00:00
sarahmccuan
03257f59cc [docs] Update CONTRIBUTING.md virtual env setup instructions (#6538) 2025-01-08 02:56:11 +00:00
Alan Cruickshank
2088f4cd0c Create a "Guides and Howtos" section of the docs. (#6301) 2024-10-08 16:49:18 +00:00
Alan Cruickshank
d26cc1658f Big docs refactor. (#6052)
Co-authored-by: Alan Cruickshank <alan+git@designingoverload.com>
2024-08-12 14:23:08 +00:00
MDW
7197f3fedf Fix spelling (#5729) 2024-04-01 10:57:53 +00:00
Alan Cruickshank
0e62388de6 Update CI to python 3.12 (#5267) 2023-10-06 17:47:03 +01:00
Alan Cruickshank
7252cbf38a Documentation for the test suite (#2180) (#5011) 2023-07-27 18:23:45 +00:00
Alan Cruickshank
402a47c4cb Make version number an argument not an option in release script. (#4677) 2023-04-05 17:56:00 +00:00
Alan Cruickshank
032814847c Update Readme and Contributing (#4502) 2023-03-13 12:07:08 +00:00
Alan Cruickshank
c8f9894c85 Recode Aliasing Rules (#4427) 2023-02-26 13:12:53 +00:00
Alan Cruickshank
531ebebb10 Rule names, aliases and more complicated selection. (#4399) 2023-02-19 20:12:28 +00:00
Alan Cruickshank
9dca4dca92 Update architecture links #4047 2022-11-09 00:00:18 +00:00
Greg Finley
f08215061f Update CI to use Python 3.11 (#4038)
* Update CI to use Python 3.11

* Appease mypy

* Appease mypy on older python

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
Co-authored-by: Alan Cruickshank <alan@designingoverload.com>
2022-11-08 13:57:05 +00:00
Nahuel
556359333c Hive: Add support for EXCHANGE PARTITION in ALTER TABLE (#3991) 2022-10-27 09:23:43 -07:00
Kian-Meng Ang
d0e661c618 Fix typos (#3901)
Found via `codespell -S ./test/fixtures,./.mypy_cache,./.tox -L
inout,crate,fo,nd,falsy,get\'s`

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
2022-10-03 14:16:52 +01:00
github-actions[bot]
69785ed983 Prep version 1.3.1 (#3839)
* Bump to version 1.3.1

* Add highlights to change log, fix a broken link in CONTRIBUTING.md

Co-authored-by: barrywhart <barrywhart@users.noreply.github.com>
Co-authored-by: Barry Hart <barry.hart@zoro.com>
2022-09-09 17:30:35 -04:00
Greg Finley
4e6326076e Python script to automate release (#3403)
* Migrate release script to Python

* progress

* regex

* Rewrite existing what's changed

* Find potential new contributors

* Start new contributors

* Get owner from env variable

* Note about safe to rerun

* Get correct new contribs for net new

* WIP

* Fix new contributors when rerunning

* add as dev requirement

* Reword doc

* Abort GHA if branch already exists

* Instructions on running locally

* Update CONTRIBUTING.md

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
2022-06-10 18:47:56 +01:00
Greg Finley
ae5c5ef669 GitHub Action to set version number (#3347)
* GitHub Action to set version number

* Mention that it creates a branch

* Remove testing lines

* create pull request

* Start Changelog entry

* Update job name in CONTRIBUTING.md

* remove redundant info

* Update .github/workflows/create-release-pull-request.yaml

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

* Update .github/workflows/create-release-pull-request.yaml

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

* Update .github/workflows/create-release-pull-request.yaml

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

* Start Of Releases line

* Update .github/workflows/create-release-pull-request.yaml

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
2022-05-17 19:52:35 +01:00
Tomasz Cholewik
401fa4a3c3 Pass dbt vars to dbt (#2923)
* Fix: vars_from_cli

* Updated Dev container config

* fixed missing requirement to use buildkit
* parametrized .dbt/profiles.yml to point to correct container
  automatically

* Update plugins/sqlfluff-templater-dbt/test/templater_test.py

* Update plugins/sqlfluff-templater-dbt/test/templater_test.py

* Black (again) - wish I'd never started this!

* Minor fixes

* Update templater_test.py

Copy DBT_FLUFF_CONFIG before modifying

* Update docs/source/configuration.rst

Co-authored-by: Tomasz Cholewik <tcholewik@consumer-edge.com>
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
Co-authored-by: Barry <barry@tunetheweb.com>
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2022-04-01 18:57:30 -04:00
Juho Autio
0307c76ac4 Document python requirement for tox/mypy & remove basepython from conf (#2644)
* Pin python version for pre-commit hooks

Most notably this pins python version for the mypy pre-commit hook so that it's aligned

* Doc python req for tox, remove basepython

* Update CONTRIBUTING.md

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
Co-authored-by: Barry Pollard <barry@tunetheweb.com>
2022-02-18 15:27:08 +00:00
Juho Autio
79773ebc35 Doc a better choice for default env (#2630)
* Doc a better choice for default env

* Update CONTRIBUTING.md

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
2022-02-14 14:45:16 +00:00
Barry Pollard
264f93cf2a Prepare version 0.9.2 (#2403)
* Prepare version 0.9.2

* Fix date

* Remove need to separate into Bugs/Enhancements

* Add extra merged PRs

* Highlight new rule

* Include latest changes

* Update changes

* Apply suggestions from code review

Co-authored-by: Christoph Wiese <chwiese@users.noreply.github.com>

* Add latest changes

* Update text

* Add latest merges

Co-authored-by: Christoph Wiese <chwiese@users.noreply.github.com>
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2022-01-24 11:29:40 +00:00
Matthias Kay
ef86702c06 docs: Document how to run SQLFluff with local changes to test them (#2316)
* docs: Document how to run SQLFluff with local changes to test them

* Update CONTRIBUTING.md

Co-authored-by: Joseph Young <80432516+jpy-git@users.noreply.github.com>

* End sentence with a '.'

* Improve documentation

* Update CONTRIBUTING.md

Co-authored-by: Joseph Young <80432516+jpy-git@users.noreply.github.com>

Co-authored-by: Joseph Young <80432516+jpy-git@users.noreply.github.com>
2022-01-15 23:09:45 +00:00
Barry Pollard
8076ecdbfb Improve release checklist to make releases easier (#2263) 2022-01-09 13:57:31 +00:00
Niall Woodward
286a5268d0 Fix connection issue in dbt 1.0.0 (#2230)
* Fix connection issue in dbt 1.0.0

* Set tests to use default Postgres database

* Add postgres service to GH action ci tests

* Fix test__templater_dbt_handle_database_connection_failure

* Fixing

* Correct database connection test

* Add real incremental model to test database connection

* Use mock to simulate database failure in "test__templater_dbt_handle_database_connection_failure"

* Attempt to ignore templator tests for Windows

* Move more tests

* Linting fixes

* Revert "Linting fixes"

This reverts commit 68b1bfb24a.

* Revert "Move more tests"

This reverts commit 2a5e662fa5.

* Revert "Attempt to ignore templator tests for Windows"

This reverts commit ca71069685.

* Attempt 2 to skip the tests for windows

* Linting

* Skip test on dbt versions below 1.0

* CONTRIBUTING.md: Document the dbt Docker Compose environment

* jy_cleanup (#2257)

* jy_cleanup

* Remove unnecessary dbt_connection mark

Co-authored-by: Barry Hart <barry.hart@mailchimp.com>
Co-authored-by: Barry <barry@tunetheweb.com>
Co-authored-by: Joseph Young <80432516+jpy-git@users.noreply.github.com>
2022-01-07 19:05:18 -05:00
Joseph Young
27f315c1fc Update index.rst notable changes with 0.9.0 details (#2132)
Co-authored-by: Barry Pollard <barry@tunetheweb.com>
2021-12-21 11:18:53 +00:00
Barry Pollard
8ccb55943d Add wiki links to CONTRIBUTING.md (#2106)
* Add wiki links to CONTRIBUTING.md

* Add another section to the Wiki
2021-12-12 22:30:04 +00:00
Joseph Young
46381e46c4 Add basic pre-commit config (#2067)
* Add basic pre-commit config

* Add tox.ini pre-commit setup to simplify hook install
2021-12-08 12:36:43 +00:00
Joseph Young
bf1c4f52aa Remove config.ini in favor of setup.cfg (#1966)
* Remove config.ini in favor of setup.cfg

* Add backport importlib_metadata for python<3.8
2021-11-23 17:50:41 -05:00
pwildenhain
be4b98ffcb Release 0.8.2 (#1922) 2021-11-22 11:10:12 -05:00
Joseph Young
573d8c3eca Tox improvements: Streamline development/testing environments. (#1860)
* Update tox configuration, as well as CONTRIBUTING.md

* moved types-chardet from requirements.txt to requirements_dev.txt

* Update CONTRIBUTING.md

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
Co-authored-by: Barry Pollard <barry@tunetheweb.com>
2021-11-18 16:53:41 +00:00
Joseph Young
f525699661 Add Tox publish commands (#1853)
* Add tox commands to streamline release workflow

* typo in tox env name

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
2021-11-14 17:30:26 +00:00
Adam Tokarski
eba45f6f82 Correct contributing testing information (#1702)
* adjust testing info in contributing.md

* provide more generic example for testing info
2021-10-19 11:36:40 +01:00
Barry Pollard
e6a18c58b1 Misc documentation updates (#1644)
* Misc documentation updates

* Update CONTRIBUTING.md

Co-authored-by: Barry Hart <barrywhart@yahoo.com>

* Update docs/source/index.rst

* Linting fixes

Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-10-14 17:37:00 +01:00
Alan Cruickshank
30a04a0bbe Segregate dbt plugin tests (#1610)
* Segregate dbt plugin tests

* linting

* update contributing.md

Co-authored-by: Barry Pollard <barry@tunetheweb.com>
2021-10-14 14:41:29 +01:00
Barry Pollard
56c8a02ef6 Rename test/fixtures/parser directory to test/fixtures/dialects (#1585)
* Rename test/fixtures/parser to dialects

* Rename

* Revert keyword change

Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
2021-10-12 00:31:14 +01:00
Alan Cruickshank
15bbf713fb Update docs for dbt templater, improve error messages when not installed. (#1583)
* Better error handling for when not installed
* Update readme and documentation
* Bump version number
* Adjust working directory of plugin build dir
* Remove dependency on core config.ini file
* Update src/sqlfluff/cli/commands.py

Co-authored-by: Barry Pollard <barry@tunetheweb.com>
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-10-11 22:41:04 +01:00
Barry Pollard
defb1749d5 Add .editorconfig config and enforce style rules (#1410)
* Add editorconfig, giattributes and convert some files

* Convert more files

* Update .gitatttributes

Co-authored-by: Barry Hart <barrywhart@yahoo.com>

Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-09-15 19:02:08 +01:00
Barry Pollard
8c2d5a055a Allow optional enforcing of implicit aliasing of tables (L011) and columns (L012) (#1402)
* Allow implicit aliasing of rules

* Better comments

* Black

* Fix tests

* Another test

* Add reminder of how to test individual rules

* Update src/sqlfluff/core/rules/config_info.py

Co-authored-by: Barry Hart <barrywhart@yahoo.com>

* Remove unnecessarily newlines

Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-09-15 16:57:03 +01:00
Barry Pollard
845c8eb3bb Add README on how to generate docs (#1403)
* Add docs README

* Add link to docs

* More documentation

* Reorder content

* Fix indentation

* Capitalisation

* Replace references to master

* Change docs folder link

* Apply suggestions from code review

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
2021-09-15 10:25:18 +01:00
Frazer Smith
4e11be346b Minor grammar, spelling, and readability fixes (#1370)
* docs: minor spelling and grammar fixes

* docs(contributing): re-add "really"

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

* docs(contributing): capitalise "Actions"

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>

Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
2021-09-10 11:35:49 +01:00
Mike Fiedler
ed7aaef4fe Minor grammar corrections to documentation (#1355)
* docs: capitalize GitHub properly

Noticed a few occurrences to fix.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

* docs: capitalize PyPI correctly

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

* docs: minor grammar fixes

Includes typo corrections.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

* docs: remove callout to update changelog

As of
7390235f65 (diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR8-R10)
the directive is to no longer update the Changelog in favor of
automation.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2021-09-05 11:10:53 +01:00
Barry Pollard
81a9c6a923 Pytest coverage exceptions to get us to 100% coverage! (#1346)
* Pytest coverage exceptions to get us to 100% coverage!

* Update tox.ini

Co-authored-by: Barry Hart <barrywhart@yahoo.com>

* Update tox.ini

Co-authored-by: Barry Hart <barrywhart@yahoo.com>

Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-09-04 20:27:43 +01:00
Barry Pollard
728aadb3e2 Update documentation to make the project more discoverable (#1311)
* Update documentation to latest state of the project

* More fixes

* Add Documentation bug template

* Linting fixes

* Wording

* More wording

* Apply suggestions from code review

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>

* Review feedback

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
2021-08-24 16:22:38 +01:00