26 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
Enrique Perez Delgado
8c65a2033f fix[sparksql]: Add support for INSERT INTO REPLACE WHERE/USING statements (#7147) 2025-09-24 19:27:14 +00:00
Saulo S. Toledo
d72ea3d9d5 Oracle: Add EXECUTE IMMEDIATE statement support (#7048) 2025-08-01 20:01:34 +00:00
Cameron
f99d4e7634 CI: Update to black 25.1 and pre-commit hooks (#6615) 2025-01-29 14:23:32 +00:00
Alan Cruickshank
4dc390f077 Switch from appdirs to platformdirs (#6399)
Co-authored-by: Alan Cruickshank <alan@Alans-MacBook-Pro.local>
Co-authored-by: Alan Cruickshank <alan+git@a14k.co.uk>
2024-11-21 15:02:09 +00:00
Łukasz Rogalski
b5ef93c06e Prework for introducing mypyc (#6433) 2024-11-09 19:10:10 +00:00
Alan Cruickshank
8abc2f49f5 Strict mypy on sqlfluff.core (#6246) 2024-09-28 18:52:29 +01:00
Cameron
a3043fec09 Replace types-pkg-resources with types-setuptools (#6039) 2024-08-06 15:20:15 +00:00
keraion
d649e97240 dbt Templater Plugin: dbt 1.8 support (#5892)
Co-authored-by: Kazuhito Osabe <kzosabe@wip.place>
2024-05-20 17:36:27 +00:00
MDW
127e07e8ad Qual: Add pre-commit to CI (#5730) 2024-04-01 21:19:41 +00:00
keraion
d09b2de661 [CI]: Update pre-commit hook versions (#5665) 2024-03-10 12:03:20 +00:00
Antoine Facchini
c736639d0a [CI] Add a few more mypy ckecks (#5505) 2023-12-26 16:27:18 +00:00
Paul Wildenhain
6f9f62d9b0 ⬆️ Bump mypy version in pre-commit (#5055) 2023-08-05 11:46:25 +00:00
Greg Finley
78943d5615 Add ruff linter (#4372) 2023-02-09 18:06:06 +00:00
Barry Pollard
1e20a481d3 Add editorconfig and precommit for SQL and YML files (#3058)
* Add editorconfig and precommit for SQL and YML files

* Revert unintended change

* Fix test

* Fix another test

* Editorconfig update

* Fix another test

* More fixes
2022-04-09 16:00:39 +01:00
Paul Guyot
2f205e4eae Bump black to 22.3.0 on pre-commit (#2969)
Co-authored-by: Paul Guyot <pguyot@upclear.com>
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
2022-04-01 18:21:34 +01:00
Barry Hart
ef7d865487 Update to latest Black, drop support for dbt < 0.20 (#2536)
* Unpin Black

* Run Black on two failing files, update Black version for pre-commit

* Drop support for versions of dbt prior to 1.0

* More dbt version stuff

* Remove more dbt version stuff from the dbt templater tests

* Run code coverage after 7 runs, now that 4 older dbt version builds were removed

* Add back some code I removed, causes test to break

* dbt templater: Fix bug where profile wasn't found if DBT_PROFILES_DIR contained uppercase letters

* Add comment

* Add an automated test for the fix

* DRY up the tests

* Add back support for dbt 0.20 and 0.21

* Update code coverage "# builds" setting

* Add back comment that was removed

* Remove redundant import

Co-authored-by: Barry Hart <barry.hart@mailchimp.com>
2022-02-01 12:58:47 -05:00
Barry Pollard
5c104a71c5 Freeze Black due to incompatibility between 22.1 and flake8-black (#2513)
* Freeze Black due to incompatibility between 22.1 and flake8-black

* Fix typo

* Set minimum flake8-black instead

* Changes needed for Black 22.1.0

* Revert "Changes needed for Black 22.1.0"

This reverts commit 34e499714f.

* Revert "Set minimum flake8-black instead"

This reverts commit c7795b144a.

* Different approach

* Comments
2022-01-30 14:03:42 +00:00
Joseph Young
68f479a53c Add types-regex package (#2216) 2021-12-30 23:34:37 +00:00
Joseph Young
b56090d89e Add type stubs for appdirs and colorama to improve mypy coverage (#2211) 2021-12-30 11:50:52 +00:00
Joseph Young
078e4e30af Remove oyaml in favour of pyyaml (#2210)
* remove oyaml in favour of pyyaml

* Pin pyyaml>=5.1

Co-authored-by: Barry Hart <barrywhart@yahoo.com>
2021-12-29 09:37:42 -05:00
Barry Pollard
3c56e20cbb Add yamllint to project (#2162)
* Add yamllint checks

* Update to ture/false instead of True/False

* Reinstate all rules

* Extend default

* Add ignore direcotries
2021-12-21 20:00:41 +00:00
Matthias Kay
bb7fbd4c2c Clean up all files using the pre-commit hook (#2123)
* Run pre-commit hook on all files

* Run pre-commit hook

* Merge main branch

* Regenerate fixtures

* Fix pre-commit hook and mypy

* Exclude more files from pre-commit hook

* Exclude from pre-commit

* Fix regexp for pre-commit exclusion

* Reset path_c

* Exclude path_c file from pre-commit hook

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

* Exclude path_c file from pre-commit hook

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

* Dedent

Co-authored-by: Joseph Young <80432516+jpy-git@users.noreply.github.com>
2021-12-18 11:37:14 +00:00
Barry Hart
4e21198f58 Fix mypy type raise in L003 (#2127) 2021-12-16 19:02:38 +00:00
Joseph Young
fc486d1417 Pre-commit: Add hook for doc8 (#2074) 2021-12-08 21:50:47 +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