tinybird-cli 1.2.1.dev5__py3-none-any.whl → 1.2.1.dev6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tinybird/__cli__.py CHANGED
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://docs.tinybird.co/cli.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '1.2.1.dev5'
8
- __revision__ = '14a4af2'
7
+ __version__ = '1.2.1.dev6'
8
+ __revision__ = '35463e1'
tinybird/datafile.py CHANGED
@@ -4097,7 +4097,7 @@ async def format_node(
4097
4097
 
4098
4098
 
4099
4099
  async def format_pipe(
4100
- filename: str, line_length: Optional[int], unroll_includes: bool = False, replace_includes: bool = True
4100
+ filename: str, line_length: Optional[int], unroll_includes: bool = False, replace_includes: bool = False
4101
4101
  ) -> str:
4102
4102
  doc = parse_pipe(filename, replace_includes=replace_includes)
4103
4103
 
@@ -4412,9 +4412,9 @@ async def diff_files(
4412
4412
  return file.readlines()
4413
4413
 
4414
4414
  async def parse(filename, with_format=True, unroll_includes=False):
4415
- extension = Path(filename).suffix
4415
+ extensions = Path(filename).suffixes
4416
4416
  lines = None
4417
- if extension == ".datasource":
4417
+ if ".datasource" in extensions: # Accepts '.datasource' and '.datasource.incl'
4418
4418
  lines = (
4419
4419
  await format_datasource(
4420
4420
  filename, unroll_includes=unroll_includes, for_diff=True, client=client, replace_includes=True
@@ -4422,7 +4422,7 @@ async def diff_files(
4422
4422
  if with_format
4423
4423
  else file_lines(filename)
4424
4424
  )
4425
- elif extension in [".pipe", ".incl"]:
4425
+ elif (".pipe" in extensions) or (".incl" in extensions):
4426
4426
  lines = (
4427
4427
  await format_pipe(filename, 100, unroll_includes=unroll_includes, replace_includes=True)
4428
4428
  if with_format
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 1.2.1.dev5
3
+ Version: 1.2.1.dev6
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://docs.tinybird.co/cli.html
6
6
  Author: Tinybird
@@ -51,6 +51,11 @@ Changelog
51
51
 
52
52
  ---------
53
53
 
54
+ 1.2.1.dev6
55
+ ************
56
+
57
+ - `Fixed` Skip replacing `.incl` files in `tb fmt`
58
+
54
59
  1.2.1.dev5
55
60
  ************
56
61
 
@@ -1,11 +1,11 @@
1
- tinybird/__cli__.py,sha256=6uyyN-FLbskTeY2Yc3Ni6pNPV0zI5SoaoG2dcqZ85Hk,237
1
+ tinybird/__cli__.py,sha256=7A0NQA4DZ8kDOAtJHowYYW2IWpvRkB3tBNixQiN4hjM,237
2
2
  tinybird/check_pypi.py,sha256=5g18LqObG1GGoN-NzuNDW7Nns5gxvwuu6u-uyRsf6bA,961
3
3
  tinybird/client.py,sha256=W-Dn6P69TRMGoaOwJMrZRVLHWVhEJs9YsnaHGdODp-k,45903
4
4
  tinybird/config.py,sha256=gEDbCgyQVCUhTTsadTa9aR5fl-KijluRg6saEQ7PQrE,1961
5
5
  tinybird/connector_settings.py,sha256=QYdGvaQNPHB3uBGOBTz5VIMh_auF30lZ8CslVZyxt2s,1865
6
6
  tinybird/connectors.py,sha256=DKHPNSHsOsRiTW7_NUPTBhWTHxDfP-cqXGHgtqGXw64,15243
7
7
  tinybird/context.py,sha256=OpO2m0Lxs3nnZaDOaYD0wymV_WAW-PBw2nAJVZl1UB8,803
8
- tinybird/datafile.py,sha256=WP6if9Rnqr58igDApGoJ1cVly4WqXLB0zFTVuXmgjQM,181525
8
+ tinybird/datafile.py,sha256=byHONHhSDx4VA8G1vBEBQLw9bi_2JG0xIcjKsvMMpsI,181597
9
9
  tinybird/datatypes.py,sha256=2CUMSz__plwRLJpt7vHvE5sOKEN0M5GWddkfGqBof_Y,7060
10
10
  tinybird/feedback_manager.py,sha256=b2I9R4udLuxcc160IrCy79fSC1Elmx_T8A7egNK1Po8,50084
11
11
  tinybird/sql.py,sha256=Or0wD5CcxOvpMYUEtIHqC51hqqrKCglihxJnYOGCOGc,36460
@@ -35,8 +35,8 @@ tinybird/tb_cli_modules/workspace.py,sha256=GeLqVbqHkpEVylVOr29z19LzuTeEby7LbcUG
35
35
  tinybird/tb_cli_modules/workspace_members.py,sha256=dB6uBgRL6tK6q0hmrDg9jMWS6gbqhCEotAO5uP_bozo,8206
36
36
  tinybird/tb_cli_modules/tinyunit/tinyunit.py,sha256=gkHfgH5gBySdhbajjMuIzaEkRzOLJgrUEG9srtLizwc,11579
37
37
  tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py,sha256=xuT0U279pfg7cRzMP9_Xdt7HWiXA702645YncDKt5jQ,1868
38
- tinybird_cli-1.2.1.dev5.dist-info/METADATA,sha256=LDpVG4v0J6L8k50cj4ceuJloTlBvoGiQ1uM0bn8gvY4,65269
39
- tinybird_cli-1.2.1.dev5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
40
- tinybird_cli-1.2.1.dev5.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
41
- tinybird_cli-1.2.1.dev5.dist-info/top_level.txt,sha256=8TRt5snq9vZpx4rBBc9EWpj76Er6IAdfnx_Eq6cNBk8,45
42
- tinybird_cli-1.2.1.dev5.dist-info/RECORD,,
38
+ tinybird_cli-1.2.1.dev6.dist-info/METADATA,sha256=2whAXeCyJvnuePmtVK9v0ulMypKG2ZRv4-Hylv4_IdU,65346
39
+ tinybird_cli-1.2.1.dev6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
40
+ tinybird_cli-1.2.1.dev6.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
41
+ tinybird_cli-1.2.1.dev6.dist-info/top_level.txt,sha256=8TRt5snq9vZpx4rBBc9EWpj76Er6IAdfnx_Eq6cNBk8,45
42
+ tinybird_cli-1.2.1.dev6.dist-info/RECORD,,