<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a command in sql cell to ignore formatting for some lines like `# fmt: off` in Pytho... in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/56664#M30616</link>
    <description>&lt;P&gt;The sql formatter I'm using is whatever databricks notebooks in the workspace themselves are using (with Ctrl-Shift-F). Is that link related to databricks?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 15:05:44 GMT</pubDate>
    <dc:creator>jonathan-dufaul</dc:creator>
    <dc:date>2024-01-08T15:05:44Z</dc:date>
    <item>
      <title>Is there a command in sql cell to ignore formatting for some lines like `# fmt: off` in Python cells</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/56543#M30594</link>
      <description>&lt;P&gt;In python cells I can add the comments `# fmt: off` before a block of code that I want black/autoformatter to ignore and `# fmt: on` afterwards. Is there anything similar I can put in sql cells to accomplish the same effect?&lt;/P&gt;&lt;P&gt;Some of the recommendations make the code far less legible.&lt;/P&gt;&lt;P&gt;Also is there any way to ignore single lines in the python cell?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 22:10:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/56543#M30594</guid>
      <dc:creator>jonathan-dufaul</dc:creator>
      <dc:date>2024-01-05T22:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command in sql cell to ignore formatting for some lines like `# fmt: off` in Pytho...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/56664#M30616</link>
      <description>&lt;P&gt;The sql formatter I'm using is whatever databricks notebooks in the workspace themselves are using (with Ctrl-Shift-F). Is that link related to databricks?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:05:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/56664#M30616</guid>
      <dc:creator>jonathan-dufaul</dc:creator>
      <dc:date>2024-01-08T15:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command in sql cell to ignore formatting for some lines like `# fmt: off` in Pytho...</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/58161#M31027</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'll accept since it looks like the answer is a no for an ignore command in sql cells.&lt;/P&gt;&lt;P&gt;I found out that you can ignore single lines in python cells by putting `# fmt: skip` at the end. There has to be a space between the `#` and fmt or else you'll get a "AssertionError: INTERNAL ERROR: Black produced different code on the second pass of the formatter. Please report a bug on &lt;A href="https://github.com/psf/black/issues" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/psf/black/issues&lt;/A&gt;." error&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jan 2024 14:28:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-command-in-sql-cell-to-ignore-formatting-for-some/m-p/58161#M31027</guid>
      <dc:creator>jonathan-dufaul</dc:creator>
      <dc:date>2024-01-22T14:28:34Z</dc:date>
    </item>
  </channel>
</rss>

