<?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: Does anyone know the Databricks-specific Python syntax highlight rules? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/does-anyone-know-the-databricks-specific-python-syntax-highlight/m-p/153807#M54018</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi — you're right that these Databricks-specific rule codes (DB01, DB03, etc.) are not documented anywhere publicly. The &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;notebook editor docs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; only mention them as a configuration example without explaining what each rule checks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;What We Know&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;DB*&lt;/SPAN&gt;&lt;SPAN&gt; rules are Databricks-written diagnostics layered on top of the standard linters (Ruff, Pylint, Pyright, Flake8). They cover Databricks-specific patterns — things like PySpark API usage, &lt;/SPAN&gt;&lt;SPAN&gt;dbutils&lt;/SPAN&gt;&lt;SPAN&gt; calls, or notebook-specific syntax that standard linters wouldn't catch. But there's no public rule index like Ruff or Pylint provide.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;How to Identify Which Rule Is Firing&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;When you see a highlighted error in the notebook editor, &lt;/SPAN&gt;&lt;STRONG&gt;hover over the squiggly underline&lt;/STRONG&gt;&lt;SPAN&gt; — the tooltip should show the rule code (e.g., &lt;/SPAN&gt;&lt;SPAN&gt;DB01&lt;/SPAN&gt;&lt;SPAN&gt;) and a short description. This is currently the only way to map a code to its meaning.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then selectively disable it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;# pyproject.toml (place in your notebook's ancestor path or ~/home)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[tool.databricks]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;disabled_rules = ['DB01']&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;If You Want to Disable Broader Categories&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;You can also toggle the three highlighting categories independently via &lt;/SPAN&gt;&lt;STRONG&gt;Settings → Developer&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python syntax error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — core syntax errors (red)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python format error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — formatting issues like line length (yellow/red, experimental)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python type error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — type checking like missing args, wrong types (DBR 16.0+, experimental)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;If the specific errors you want to suppress fall under formatting or type checking, toggling those off may be simpler than hunting individual rule codes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Requesting Better Documentation&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;I'd suggest filing a docs feedback request via the "Was this page helpful?" widget on the &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;notebook editor docs page&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; — asking for a rule reference table would be a reasonable ask.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Docs:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;Notebook Editor — Configure Python Syntax Highlighting&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 09 Apr 2026 03:49:36 GMT</pubDate>
    <dc:creator>anuj_lathi</dc:creator>
    <dc:date>2026-04-09T03:49:36Z</dc:date>
    <item>
      <title>Does anyone know the Databricks-specific Python syntax highlight rules?</title>
      <link>https://community.databricks.com/t5/data-engineering/does-anyone-know-the-databricks-specific-python-syntax-highlight/m-p/153748#M54006</link>
      <description>&lt;P&gt;The documentation on databricks.com says the following, in the context of configuring Python linting via pyproject.toml:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;You can also disable &lt;/SPAN&gt;&lt;SPAN&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt;-written syntax highlighting rules with a block such as:&lt;BR /&gt;&lt;SPAN class=""&gt;[tool.databricks]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;disabled_rules = ['DB01', 'DB03']&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I have searched far and wide and I cannot find any documentation whatsoever that describes these rules. There have been some recent changes to error highlighting that I'd like to disable without entirely turning off error highlighting, but that's difficult without documentation (if it's even possible).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anyone know where to find information on this?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 13:54:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-anyone-know-the-databricks-specific-python-syntax-highlight/m-p/153748#M54006</guid>
      <dc:creator>jayhcunningham</dc:creator>
      <dc:date>2026-04-08T13:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know the Databricks-specific Python syntax highlight rules?</title>
      <link>https://community.databricks.com/t5/data-engineering/does-anyone-know-the-databricks-specific-python-syntax-highlight/m-p/153807#M54018</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi — you're right that these Databricks-specific rule codes (DB01, DB03, etc.) are not documented anywhere publicly. The &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;notebook editor docs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; only mention them as a configuration example without explaining what each rule checks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;What We Know&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;DB*&lt;/SPAN&gt;&lt;SPAN&gt; rules are Databricks-written diagnostics layered on top of the standard linters (Ruff, Pylint, Pyright, Flake8). They cover Databricks-specific patterns — things like PySpark API usage, &lt;/SPAN&gt;&lt;SPAN&gt;dbutils&lt;/SPAN&gt;&lt;SPAN&gt; calls, or notebook-specific syntax that standard linters wouldn't catch. But there's no public rule index like Ruff or Pylint provide.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;How to Identify Which Rule Is Firing&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;When you see a highlighted error in the notebook editor, &lt;/SPAN&gt;&lt;STRONG&gt;hover over the squiggly underline&lt;/STRONG&gt;&lt;SPAN&gt; — the tooltip should show the rule code (e.g., &lt;/SPAN&gt;&lt;SPAN&gt;DB01&lt;/SPAN&gt;&lt;SPAN&gt;) and a short description. This is currently the only way to map a code to its meaning.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then selectively disable it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;# pyproject.toml (place in your notebook's ancestor path or ~/home)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[tool.databricks]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;disabled_rules = ['DB01']&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;If You Want to Disable Broader Categories&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;You can also toggle the three highlighting categories independently via &lt;/SPAN&gt;&lt;STRONG&gt;Settings → Developer&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python syntax error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — core syntax errors (red)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python format error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — formatting issues like line length (yellow/red, experimental)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Python type error highlighting&lt;/STRONG&gt;&lt;SPAN&gt; — type checking like missing args, wrong types (DBR 16.0+, experimental)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;If the specific errors you want to suppress fall under formatting or type checking, toggling those off may be simpler than hunting individual rule codes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Requesting Better Documentation&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;I'd suggest filing a docs feedback request via the "Was this page helpful?" widget on the &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;notebook editor docs page&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; — asking for a rule reference table would be a reasonable ask.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Docs:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-editor" target="_blank"&gt;&lt;SPAN&gt;Notebook Editor — Configure Python Syntax Highlighting&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 09 Apr 2026 03:49:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-anyone-know-the-databricks-specific-python-syntax-highlight/m-p/153807#M54018</guid>
      <dc:creator>anuj_lathi</dc:creator>
      <dc:date>2026-04-09T03:49:36Z</dc:date>
    </item>
  </channel>
</rss>

