<?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: Implementing Ruff linter in Gitlab CI/CD for Databrick notebooks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/implementing-ruff-linter-in-gitlab-ci-cd-for-databrick-notebooks/m-p/145776#M52579</link>
    <description>&lt;P&gt;&lt;SPAN&gt;you're using&amp;nbsp;&lt;/SPAN&gt;ruff&lt;SPAN&gt;&amp;nbsp;for linting. The issue with Databricks magic commands (&lt;/SPAN&gt;%sql&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;%pip&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;%run&lt;SPAN&gt;) is that they're Databricks-specific syntax, not standard Python, so&amp;nbsp;&lt;/SPAN&gt;ruff&lt;SPAN&gt;&amp;nbsp;treats them as errors. you should exclude databricks notebook from ruff.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2026 16:17:11 GMT</pubDate>
    <dc:creator>saurabh18cs</dc:creator>
    <dc:date>2026-01-29T16:17:11Z</dc:date>
    <item>
      <title>Implementing Ruff linter in Gitlab CI/CD for Databrick notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/implementing-ruff-linter-in-gitlab-ci-cd-for-databrick-notebooks/m-p/145722#M52567</link>
      <description>&lt;P&gt;Hi all, I am trying to implement ruff linting in Gitlab CI/CD where I am only trying to catch undefined name errors ["F821"]. However it is picking up my magic commands like %sql and %pip as syntax errors and I am unable to exclude it in the pyproject.toml file.&lt;/P&gt;&lt;P&gt;When using %run to import functions from another notebook it will not recognise it as an import.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried to implement ruff in CI/CD and if so how did you get through this hurdle? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 12:07:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/implementing-ruff-linter-in-gitlab-ci-cd-for-databrick-notebooks/m-p/145722#M52567</guid>
      <dc:creator>bomb_omb</dc:creator>
      <dc:date>2026-01-29T12:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Ruff linter in Gitlab CI/CD for Databrick notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/implementing-ruff-linter-in-gitlab-ci-cd-for-databrick-notebooks/m-p/145776#M52579</link>
      <description>&lt;P&gt;&lt;SPAN&gt;you're using&amp;nbsp;&lt;/SPAN&gt;ruff&lt;SPAN&gt;&amp;nbsp;for linting. The issue with Databricks magic commands (&lt;/SPAN&gt;%sql&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;%pip&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;%run&lt;SPAN&gt;) is that they're Databricks-specific syntax, not standard Python, so&amp;nbsp;&lt;/SPAN&gt;ruff&lt;SPAN&gt;&amp;nbsp;treats them as errors. you should exclude databricks notebook from ruff.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:17:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/implementing-ruff-linter-in-gitlab-ci-cd-for-databrick-notebooks/m-p/145776#M52579</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2026-01-29T16:17:11Z</dc:date>
    </item>
  </channel>
</rss>

