Skip to content

Commit 31bdfa5

Browse files
committed
chore(vscode): centralise formatting code
1 parent e2adfe3 commit 31bdfa5

58 files changed

Lines changed: 19993 additions & 19937 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,25 @@ jobs:
8686
paths:
8787
- dist
8888
trigger_private_renovate:
89-
docker:
90-
- image: cimg/base:2021.11
91-
resource_class: small
92-
steps:
93-
- run:
94-
name: Trigger private renovate
95-
command: |
96-
curl --request POST \
97-
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
98-
--header "Circle-Token: $TOBIKO_PRIVATE_CIRCLECI_KEY" \
99-
--header "content-type: application/json" \
100-
--data '{
101-
"branch":"main",
102-
"parameters":{
103-
"run_main_pr":false,
104-
"run_sqlmesh_commit":false,
105-
"run_renovate":true
106-
}
107-
}'
89+
docker:
90+
- image: cimg/base:2021.11
91+
resource_class: small
92+
steps:
93+
- run:
94+
name: Trigger private renovate
95+
command: |
96+
curl --request POST \
97+
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
98+
--header "Circle-Token: $TOBIKO_PRIVATE_CIRCLECI_KEY" \
99+
--header "content-type: application/json" \
100+
--data '{
101+
"branch":"main",
102+
"parameters":{
103+
"run_main_pr":false,
104+
"run_sqlmesh_commit":false,
105+
"run_renovate":true
106+
}
107+
}'
108108
109109
workflows:
110110
setup-workflow:
@@ -116,7 +116,7 @@ workflows:
116116
pytest.ini|setup.cfg|setup.py python true
117117
\.circleci/.*|Makefile|\.pre-commit-config\.yaml common true
118118
vscode/extensions/.* vscode true
119-
tag: "3.9"
119+
tag: '3.9'
120120

121121
- vscode-extension-setup:
122122
<<: *on_main_or_tag_filter

.circleci/continue_config.yml

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ jobs:
7171
command: make install-dev
7272
- run:
7373
name: Fix Git URL override
74-
command: git config --global --unset url."ssh://git@github.com".insteadOf
74+
command:
75+
git config --global --unset url."ssh://git@github.com".insteadOf
7576
- run:
7677
name: Run linters and code style checks
7778
command: make py-style
@@ -86,7 +87,7 @@ jobs:
8687
- image: cimg/python:3.10
8788
resource_class: small
8889
environment:
89-
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: "1"
90+
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
9091
steps:
9192
- halt_unless_core
9293
- checkout
@@ -113,7 +114,8 @@ jobs:
113114
command: pip install pre-commit
114115
- run:
115116
name: Fix Git URL override
116-
command: git config --global --unset url."ssh://git@github.com".insteadOf
117+
command:
118+
git config --global --unset url."ssh://git@github.com".insteadOf
117119
- run:
118120
name: Run linters and code style checks
119121
command: make ui-style
@@ -134,7 +136,7 @@ jobs:
134136
- v1-nm-cache-{{ checksum "package-lock.json" }}
135137
- run:
136138
name: Install packages
137-
command: npm ci
139+
command: npm ci
138140
- save_cache:
139141
key: v1-nm-cache-{{ checksum "package-lock.json" }}
140142
paths:
@@ -144,37 +146,37 @@ jobs:
144146
command: npm --prefix web/client run test
145147

146148
trigger_private_tests:
147-
docker:
148-
- image: cimg/python:3.12.0
149-
resource_class: small
150-
steps:
151-
- checkout
152-
- run:
153-
name: Install setuptools scm
154-
command: pip install setuptools_scm
155-
- run:
156-
name: Trigger private tests
157-
command: |
158-
export COMMIT_MESSAGE="$(git log --format=%s -n 1 $CIRCLE_SHA1)"
159-
export FORMATTED_COMMIT_MESSAGE="${COMMIT_MESSAGE//\"/\\\"}"
160-
# returns a version string like 0.1.0.dev11
161-
export PACKAGE_VERSION="$(python ./.circleci/get_scm_version.py)"
162-
curl --request POST \
163-
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
164-
--header "Circle-Token: $TOBIKO_PRIVATE_CIRCLECI_KEY" \
165-
--header "content-type: application/json" \
166-
--data '{
167-
"branch":"main",
168-
"parameters":{
169-
"run_main_pr":false,
170-
"run_sqlmesh_commit":true,
171-
"sqlmesh_branch":"'$CIRCLE_BRANCH'",
172-
"sqlmesh_commit_author":"'$CIRCLE_USERNAME'",
173-
"sqlmesh_commit_hash":"'$CIRCLE_SHA1'",
174-
"sqlmesh_commit_message":"'"$FORMATTED_COMMIT_MESSAGE"'",
175-
"sqlmesh_package_version":"'$PACKAGE_VERSION'"
176-
}
177-
}'
149+
docker:
150+
- image: cimg/python:3.12.0
151+
resource_class: small
152+
steps:
153+
- checkout
154+
- run:
155+
name: Install setuptools scm
156+
command: pip install setuptools_scm
157+
- run:
158+
name: Trigger private tests
159+
command: |
160+
export COMMIT_MESSAGE="$(git log --format=%s -n 1 $CIRCLE_SHA1)"
161+
export FORMATTED_COMMIT_MESSAGE="${COMMIT_MESSAGE//\"/\\\"}"
162+
# returns a version string like 0.1.0.dev11
163+
export PACKAGE_VERSION="$(python ./.circleci/get_scm_version.py)"
164+
curl --request POST \
165+
--url $TOBIKO_PRIVATE_CIRCLECI_URL \
166+
--header "Circle-Token: $TOBIKO_PRIVATE_CIRCLECI_KEY" \
167+
--header "content-type: application/json" \
168+
--data '{
169+
"branch":"main",
170+
"parameters":{
171+
"run_main_pr":false,
172+
"run_sqlmesh_commit":true,
173+
"sqlmesh_branch":"'$CIRCLE_BRANCH'",
174+
"sqlmesh_commit_author":"'$CIRCLE_USERNAME'",
175+
"sqlmesh_commit_hash":"'$CIRCLE_SHA1'",
176+
"sqlmesh_commit_message":"'"$FORMATTED_COMMIT_MESSAGE"'",
177+
"sqlmesh_package_version":"'$PACKAGE_VERSION'"
178+
}
179+
}'
178180
179181
engine_tests_docker:
180182
parameters:
@@ -185,13 +187,14 @@ jobs:
185187
docker_layer_caching: true
186188
resource_class: large
187189
environment:
188-
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: "1"
190+
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
189191
steps:
190192
- halt_unless_core
191193
- checkout
192194
- run:
193195
name: Install OS-level dependencies
194-
command: ./.circleci/install-prerequisites.sh "<< parameters.engine >>"
196+
command:
197+
./.circleci/install-prerequisites.sh "<< parameters.engine >>"
195198
- run:
196199
name: Run tests
197200
command: make << parameters.engine >>-test
@@ -208,7 +211,7 @@ jobs:
208211
resource_class: medium
209212
environment:
210213
PYTEST_XDIST_AUTO_NUM_WORKERS: 4
211-
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: "1"
214+
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
212215
steps:
213216
- halt_unless_core
214217
- checkout
@@ -223,15 +226,19 @@ jobs:
223226
echo "export REDSHIFT_DATABASE='$TEST_DB_NAME'" >> "$BASH_ENV"
224227
- run:
225228
name: Create test database
226-
command: ./.circleci/manage-test-db.sh << parameters.engine >> "$TEST_DB_NAME" up
229+
command:
230+
./.circleci/manage-test-db.sh << parameters.engine >>
231+
"$TEST_DB_NAME" up
227232
- run:
228233
name: Run tests
229234
command: |
230235
make << parameters.engine >>-test
231236
no_output_timeout: 20m
232237
- run:
233238
name: Tear down test database
234-
command: ./.circleci/manage-test-db.sh << parameters.engine >> "$TEST_DB_NAME" down
239+
command:
240+
./.circleci/manage-test-db.sh << parameters.engine >>
241+
"$TEST_DB_NAME" down
235242
when: always
236243
- store_test_results:
237244
path: test-results
@@ -244,10 +251,10 @@ workflows:
244251
matrix:
245252
parameters:
246253
python_version:
247-
- "3.9"
248-
- "3.10"
249-
- "3.11"
250-
- "3.12"
254+
- '3.9'
255+
- '3.10'
256+
- '3.11'
257+
- '3.12'
251258
- engine_tests_docker:
252259
name: engine_<< matrix.engine >>
253260
matrix:
@@ -278,9 +285,9 @@ workflows:
278285
- clickhouse-cloud
279286
- athena
280287
filters:
281-
branches:
282-
only:
283-
- main
288+
branches:
289+
only:
290+
- main
284291
- trigger_private_tests:
285292
requires:
286293
- style_and_cicd_tests

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ repos:
1919
name: mypy
2020
language: system
2121
entry: mypy
22-
"types": [python]
22+
'types': [python]
2323
files: *files
2424
require_serial: true
2525
exclude: ^(tests/fixtures)
2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: "fc26039"
27+
rev: 'fc26039'
2828
hooks:
2929
- id: prettier
3030
name: prettier
@@ -34,7 +34,7 @@ repos:
3434
require_serial: true
3535
language: node
3636
- repo: https://github.com/pre-commit/mirrors-eslint
37-
rev: "4620ec5"
37+
rev: '4620ec5'
3838
hooks:
3939
- id: eslint
4040
name: eslint
@@ -43,8 +43,8 @@ repos:
4343
entry: eslint --fix
4444
additional_dependencies:
4545
[
46-
"@typescript-eslint/eslint-plugin@6.5.0",
47-
"@typescript-eslint/parser@6.5.0",
46+
'@typescript-eslint/eslint-plugin@6.5.0',
47+
'@typescript-eslint/parser@6.5.0',
4848
eslint@8.48.0,
4949
eslint-config-prettier@9.0.0,
5050
eslint-config-standard-with-typescript@39.0.0,

.prettierignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
web/client/**/*.py
2+
web/client/.prettierignore
3+
web/client/.gitignore
4+
web/client/node_modules/
5+
web/client/test-results/
6+
web/client/playwright-report/
7+
web/client/playwright/.cache/
8+
web/client/dist
9+
web/client/public/favicons/
10+
web/client/public/fonts/
11+
web/client/src/styles/fonts/
12+
web/client/src/assets/fonts/
13+
web/client/tsconfig.tsbuildinfo
14+
15+
node_modules/
16+
vscode/extension/node_modules/
17+
vscode/extension/dist
18+
vscode/extension/out
19+
vscode/extension/tsconfig.tsbuildinfo
20+
vscode/extension/.vscode-test/
21+
22+
sqlmesh
23+
docs
24+
tests
25+
examples
26+
posts

.readthedocs.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.10"
6+
python: '3.10'
77
jobs:
88
pre_build:
9-
- pip install -e ".[athena,azuresql,bigframes,bigquery,clickhouse,databricks,dbt,dlt,gcppostgres,github,llm,mssql,mysql,mwaa,postgres,redshift,slack,snowflake,trino,web,risingwave]"
9+
- pip install -e
10+
".[athena,azuresql,bigframes,bigquery,clickhouse,databricks,dbt,dlt,gcppostgres,github,llm,mssql,mysql,mwaa,postgres,redshift,slack,snowflake,trino,web,risingwave]"
1011
- make api-docs
1112

1213
mkdocs:
1314
configuration: mkdocs.yml
1415

1516
python:
16-
install:
17-
- requirements: docs/requirements.txt
17+
install:
18+
- requirements: docs/requirements.txt

0 commit comments

Comments
 (0)