Skip to content

Commit fac3257

Browse files
Bump sqlfluff from 4.1.0 to 4.2.0 in /src (#4466)
* Bump sqlfluff from 4.1.0 to 4.2.0 in /src Bumps [sqlfluff](https://github.com/sqlfluff/sqlfluff) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/sqlfluff/sqlfluff/releases) - [Changelog](https://github.com/sqlfluff/sqlfluff/blob/main/CHANGELOG.md) - [Commits](sqlfluff/sqlfluff@4.1.0...4.2.0) --- updated-dependencies: - dependency-name: sqlfluff dependency-version: 4.2.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * update sqlfluff config to exclude AL10 * Fix layout.indent (LT02) violations in client hints queries --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
1 parent b216325 commit fac3257

4 files changed

Lines changed: 42 additions & 42 deletions

File tree

sql/.sqlfluff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[sqlfluff]
22
dialect = bigquery
33
# Comma separated list of rules to exclude, or None
4-
exclude_rules = AL01,AL04,AL07,AL09,AM03,AM05,AM08,CP02,CP03,CV02,CV12,LT05,LT09,LT14,RF01,RF02,RF03,RF04,ST01,ST02,ST05,ST06,ST07,ST08,ST11
4+
exclude_rules = AL01,AL04,AL07,AL09,AL10,AM03,AM05,AM08,CP02,CP03,CV02,CV12,LT05,LT09,LT14,RF01,RF02,RF03,RF04,ST01,ST02,ST05,ST06,ST07,ST08,ST11
55
# AL01 - We don't always alias tables with AS ("FROM table1 AS tb1" instead of "FROM table1 tb1"). Do for columns but not for tables.
66
# AL04 - Asks for unique table aliases meaning it complains if selecting from two 2021_07_01 tables as implicit alias is table name (not fully qualified) so same.
77
# AL07 - Avoid aliases in from and join - why?

sql/2025/cdn/client_hints/client_hints_by_header.sql

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,26 @@ hint_rollup AS (
3434
dict AS (
3535
SELECT *
3636
FROM UNNEST([
37-
STRUCT('sec-ch-ua' AS client_hint, 'User-Agent' AS category, 'Low' AS entropy, 1 AS ord),
38-
('sec-ch-ua-mobile', 'User-Agent', 'Low', 2),
39-
('sec-ch-ua-platform', 'User-Agent', 'Low', 3),
40-
('sec-ch-ua-platform-version', 'User-Agent', 'High', 4),
41-
('sec-ch-ua-model', 'Device', 'High', 5),
42-
('sec-ch-ua-full-version-list', 'User-Agent', 'High', 6),
43-
('sec-ch-ua-arch', 'Device', 'High', 7),
44-
('sec-ch-ua-bitness', 'Device', 'High', 8),
45-
('sec-ch-ua-wow64', 'Device', 'High', 9),
46-
('sec-ch-ua-full-version', 'User-Agent', 'High', 10),
47-
('sec-ch-prefers-color-scheme', 'User Preference', 'Low', 11),
48-
('sec-ch-viewport-width', 'Viewport', 'High', 12),
49-
('sec-ch-dpr', 'Device', 'High', 13),
50-
('sec-ch-device-memory', 'Device', 'High', 14),
51-
('sec-ch-ua-form-factors', 'Device', 'High', 15),
52-
('sec-ch-viewport-height', 'Viewport', 'High', 16),
53-
('sec-ch-prefers-reduced-motion', 'User Preference', 'Low', 17),
54-
('sec-ch-prefers-reduced-transparency', 'User Preference', 'Low', 18),
55-
('sec-ch-width', 'Viewport', 'High', 19)
56-
])
37+
STRUCT('sec-ch-ua' AS client_hint, 'User-Agent' AS category, 'Low' AS entropy, 1 AS ord),
38+
('sec-ch-ua-mobile', 'User-Agent', 'Low', 2),
39+
('sec-ch-ua-platform', 'User-Agent', 'Low', 3),
40+
('sec-ch-ua-platform-version', 'User-Agent', 'High', 4),
41+
('sec-ch-ua-model', 'Device', 'High', 5),
42+
('sec-ch-ua-full-version-list', 'User-Agent', 'High', 6),
43+
('sec-ch-ua-arch', 'Device', 'High', 7),
44+
('sec-ch-ua-bitness', 'Device', 'High', 8),
45+
('sec-ch-ua-wow64', 'Device', 'High', 9),
46+
('sec-ch-ua-full-version', 'User-Agent', 'High', 10),
47+
('sec-ch-prefers-color-scheme', 'User Preference', 'Low', 11),
48+
('sec-ch-viewport-width', 'Viewport', 'High', 12),
49+
('sec-ch-dpr', 'Device', 'High', 13),
50+
('sec-ch-device-memory', 'Device', 'High', 14),
51+
('sec-ch-ua-form-factors', 'Device', 'High', 15),
52+
('sec-ch-viewport-height', 'Viewport', 'High', 16),
53+
('sec-ch-prefers-reduced-motion', 'User Preference', 'Low', 17),
54+
('sec-ch-prefers-reduced-transparency', 'User Preference', 'Low', 18),
55+
('sec-ch-width', 'Viewport', 'High', 19)
56+
])
5757
)
5858

5959
SELECT

sql/2025/cdn/client_hints/default_vs_requested_hints.sql

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,26 @@ pages_with_accept_ch_count AS (
8484
hint_dict AS (
8585
SELECT *
8686
FROM UNNEST([
87-
STRUCT('sec-ch-ua' AS hint_name, 'User-Agent' AS category, 'Low' AS entropy, TRUE AS is_default_hint),
88-
('sec-ch-ua-mobile', 'User-Agent', 'Low', TRUE),
89-
('sec-ch-ua-platform', 'User-Agent', 'Low', TRUE),
90-
('sec-ch-ua-platform-version', 'User-Agent', 'High', FALSE),
91-
('sec-ch-ua-model', 'Device', 'High', FALSE),
92-
('sec-ch-ua-full-version-list', 'User-Agent', 'High', FALSE),
93-
('sec-ch-ua-arch', 'Device', 'High', FALSE),
94-
('sec-ch-ua-bitness', 'Device', 'High', FALSE),
95-
('sec-ch-ua-wow64', 'Device', 'High', FALSE),
96-
('sec-ch-ua-full-version', 'User-Agent', 'High', FALSE),
97-
('sec-ch-prefers-color-scheme', 'User Preference', 'Low', FALSE),
98-
('sec-ch-viewport-width', 'Viewport', 'High', FALSE),
99-
('sec-ch-dpr', 'Device', 'High', FALSE),
100-
('sec-ch-device-memory', 'Device', 'High', FALSE),
101-
('sec-ch-ua-form-factors', 'Device', 'High', FALSE),
102-
('sec-ch-viewport-height', 'Viewport', 'High', FALSE),
103-
('sec-ch-prefers-reduced-motion', 'User Preference', 'Low', FALSE),
104-
('sec-ch-prefers-reduced-transparency', 'User Preference', 'Low', FALSE),
105-
('sec-ch-width', 'Viewport', 'High', FALSE)
106-
])
87+
STRUCT('sec-ch-ua' AS hint_name, 'User-Agent' AS category, 'Low' AS entropy, TRUE AS is_default_hint),
88+
('sec-ch-ua-mobile', 'User-Agent', 'Low', TRUE),
89+
('sec-ch-ua-platform', 'User-Agent', 'Low', TRUE),
90+
('sec-ch-ua-platform-version', 'User-Agent', 'High', FALSE),
91+
('sec-ch-ua-model', 'Device', 'High', FALSE),
92+
('sec-ch-ua-full-version-list', 'User-Agent', 'High', FALSE),
93+
('sec-ch-ua-arch', 'Device', 'High', FALSE),
94+
('sec-ch-ua-bitness', 'Device', 'High', FALSE),
95+
('sec-ch-ua-wow64', 'Device', 'High', FALSE),
96+
('sec-ch-ua-full-version', 'User-Agent', 'High', FALSE),
97+
('sec-ch-prefers-color-scheme', 'User Preference', 'Low', FALSE),
98+
('sec-ch-viewport-width', 'Viewport', 'High', FALSE),
99+
('sec-ch-dpr', 'Device', 'High', FALSE),
100+
('sec-ch-device-memory', 'Device', 'High', FALSE),
101+
('sec-ch-ua-form-factors', 'Device', 'High', FALSE),
102+
('sec-ch-viewport-height', 'Viewport', 'High', FALSE),
103+
('sec-ch-prefers-reduced-motion', 'User Preference', 'Low', FALSE),
104+
('sec-ch-prefers-reduced-transparency', 'User Preference', 'Low', FALSE),
105+
('sec-ch-width', 'Viewport', 'High', FALSE)
106+
])
107107
)
108108

109109
SELECT

src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ gunicorn==25.3.0
44
pytest==9.0.3
55
pytest-watch==4.2.0
66
pytest-cov==7.1.0
7-
sqlfluff==4.1.0
7+
sqlfluff==4.2.0

0 commit comments

Comments
 (0)