From 2cce4f732ea57f9d7820d6c3165a06ac5a71cd9d Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Sat, 14 Dec 2024 11:47:30 -0800 Subject: [PATCH] fix: downgrade sqlfluff from 3.3.0 to 3.2.5 (#2642) * For some reason the new version leads to references.from issues --- poetry.lock | 51 ++++++++++++++++++++++++++++++-------------------- pyproject.toml | 4 ++-- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/poetry.lock b/poetry.lock index ca756f402..621468df4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -226,6 +226,17 @@ doc = ["Sphinx (>=7.4,<8.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "truststore (>=0.9.1)", "uvloop (>=0.21)"] trio = ["trio (>=0.26.1)"] +[[package]] +name = "appdirs" +version = "1.4.4" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +optional = false +python-versions = "*" +files = [ + {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, + {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, +] + [[package]] name = "arrow" version = "1.3.0" @@ -430,13 +441,13 @@ files = [ [[package]] name = "certifi" -version = "2024.8.30" +version = "2024.12.14" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, - {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, + {file = "certifi-2024.12.14-py3-none-any.whl", hash = "sha256:1275f7a45be9464efc1173084eaa30f866fe2e47d389406136d332ed4967ec56"}, + {file = "certifi-2024.12.14.tar.gz", hash = "sha256:b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db"}, ] [[package]] @@ -1561,13 +1572,13 @@ optimize = ["orjson"] [[package]] name = "diff-cover" -version = "9.2.0" +version = "9.2.1" description = "Run coverage and linting reports on diffs" optional = false -python-versions = "<4.0.0,>=3.8.10" +python-versions = "<4.0.0,>=3.9.17" files = [ - {file = "diff_cover-9.2.0-py3-none-any.whl", hash = "sha256:1e24edc51c39e810c47dd9986e76c333ed95859655c091f572e590c39cabbdbe"}, - {file = "diff_cover-9.2.0.tar.gz", hash = "sha256:85a0b353ebbb678f9e87ea303f75b545bd0baca38f563219bb72f2ae862bba36"}, + {file = "diff_cover-9.2.1-py3-none-any.whl", hash = "sha256:97393d4acaa7545eae86f66e287ad96ffbeef70c188cca5a7f433983363e3849"}, + {file = "diff_cover-9.2.1.tar.gz", hash = "sha256:5fa5b2d71ccf5d16cd222a71c2ca069d9bf5fa3d657f6fac9b4d9c23379323bf"}, ] [package.dependencies] @@ -3258,13 +3269,13 @@ files = [ [[package]] name = "kopf" -version = "1.37.3" +version = "1.37.4" description = "Kubernetes Operator Pythonic Framework (Kopf)" optional = false python-versions = ">=3.8" files = [ - {file = "kopf-1.37.3-py3-none-any.whl", hash = "sha256:ed6338db46a7243e1e5ea86e978914ffa2b6e9cd3ba4daf374b4cedaeff3f523"}, - {file = "kopf-1.37.3.tar.gz", hash = "sha256:8d45ef8c4eff8fbccfa72da47df55208a65d5b5642ff22bff9b1ff8d9e6f1f15"}, + {file = "kopf-1.37.4-py3-none-any.whl", hash = "sha256:0e0f9984eca5d50e4b5f1fd646bdbbd9f3cf164fab9ab86a437a5e69cde629d1"}, + {file = "kopf-1.37.4.tar.gz", hash = "sha256:a940f7af4b31e345bfd052b14be330dd891173a90a2179a63d566e6f278bed63"}, ] [package.dependencies] @@ -3273,7 +3284,7 @@ click = "*" iso8601 = "*" python-json-logger = "*" pyyaml = "*" -typing-extensions = "*" +typing_extensions = "*" [package.extras] dev = ["certbuilder", "certvalidator", "oscrypto", "pyngrok"] @@ -6402,23 +6413,23 @@ sqlcipher = ["sqlcipher3_binary"] [[package]] name = "sqlfluff" -version = "3.3.0" +version = "3.2.5" description = "The SQL Linter for Humans" optional = false python-versions = ">=3.8" files = [ - {file = "sqlfluff-3.3.0-py3-none-any.whl", hash = "sha256:83c29db0e7773bb5075543e2049a919632f6ced8a2b475d6a69879da52b03097"}, - {file = "sqlfluff-3.3.0.tar.gz", hash = "sha256:ea0b752c0b8f4602a56fa5b381eb5c806799e4941df8fc0aad0842c9d4283e03"}, + {file = "sqlfluff-3.2.5-py3-none-any.whl", hash = "sha256:ae9ff821986b5b0dd1ea858392db7f0eb80343c2cdeee7900fa031f581e04643"}, + {file = "sqlfluff-3.2.5.tar.gz", hash = "sha256:39822db2c6ad7dac9f6e43d36a3d086c503c051b09665d14a5bdf644770f6ef6"}, ] [package.dependencies] +appdirs = "*" chardet = "*" click = "*" colorama = ">=0.3" diff-cover = ">=2.5.0" Jinja2 = "*" pathspec = "*" -platformdirs = "*" pytest = "*" pyyaml = ">=5.1" regex = "*" @@ -6427,19 +6438,19 @@ tqdm = "*" [[package]] name = "sqlfluff-templater-dbt" -version = "3.3.0" +version = "3.2.5" description = "Lint your dbt project SQL" optional = false python-versions = "*" files = [ - {file = "sqlfluff_templater_dbt-3.3.0-py3-none-any.whl", hash = "sha256:f3a2affa196e754e94d4914947e4991c2c9d5ce47056e3d8bcf2d59103db73f2"}, - {file = "sqlfluff_templater_dbt-3.3.0.tar.gz", hash = "sha256:85b79ab31e1e0fa5ab9a22e73ee93210d373dfa2daadc8271193ce01a026d7a8"}, + {file = "sqlfluff_templater_dbt-3.2.5-py3-none-any.whl", hash = "sha256:512d9f5b73d3d362c1983baf8c716c12a469604420c6dcc135e570a647490378"}, + {file = "sqlfluff_templater_dbt-3.2.5.tar.gz", hash = "sha256:5b5bc4612d707e514c6892367c61ae45f61dac4818de7e2dd037089e6b131dab"}, ] [package.dependencies] dbt-core = ">=1.4.1" jinja2-simple-tags = ">=0.3.1" -sqlfluff = "3.3.0" +sqlfluff = "3.2.5" [[package]] name = "sqlglot" @@ -7660,4 +7671,4 @@ cffi = ["cffi (>=1.11)"] [metadata] lock-version = "2.0" python-versions = "^3.12,<3.13" -content-hash = "42557561295186815ea41aacba6e197421b1d7578de34497e601bc143c68e4f5" +content-hash = "9fc640d518aa707b0479720a8c2ac62fba8e170191b36471bd3c426ff2e89ebe" diff --git a/pyproject.toml b/pyproject.toml index 6cc2fb4c7..d658ecb1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,8 +87,8 @@ oso = 'oso_lets_go.cli:cli' dagster-webserver = "^1.7.2" ipython = "^8.21.0" shandy-sqlfmt = { extras = ["jinjafmt"], version = "^0.21.1" } -sqlfluff = "^3.0.7" -sqlfluff-templater-dbt = "^3.0.7" +sqlfluff = "~3.2.5" +sqlfluff-templater-dbt = "~3.2.5" [build-system] requires = ["poetry-core"]