<?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 Pylint github workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/116868#M45386</link>
    <description>&lt;P&gt;I am implementing this to my workflow however there is a problem I want to avoid&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Enrollment_Profile/mv_person_test_pylint.py:22:9: E0602: Undefined variable 'spark' (undefined-variable)&lt;BR /&gt;&lt;BR /&gt;Can someone avoid that issue with spark dlt?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2025 22:32:24 GMT</pubDate>
    <dc:creator>carlos_tasayco</dc:creator>
    <dc:date>2025-04-28T22:32:24Z</dc:date>
    <item>
      <title>Pylint github workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/116868#M45386</link>
      <description>&lt;P&gt;I am implementing this to my workflow however there is a problem I want to avoid&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Enrollment_Profile/mv_person_test_pylint.py:22:9: E0602: Undefined variable 'spark' (undefined-variable)&lt;BR /&gt;&lt;BR /&gt;Can someone avoid that issue with spark dlt?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 22:32:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/116868#M45386</guid>
      <dc:creator>carlos_tasayco</dc:creator>
      <dc:date>2025-04-28T22:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pylint github workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/117548#M45526</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147953"&gt;@carlos_tasayco&lt;/a&gt;,&amp;nbsp;it seems like you are running a test here. If you are running a test outside of a databricks environment (like in a CI pipeline) then you need to define a spark session manually. In the DBR (databricks runtime) the spark session is created automatically for you but when you run code locally or in a CI pipeline, then you need to build the spark session yourself and save it in the variable 'spark'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this thread and look at MarkusFra's reply, he creates a Databricks Session object in his script which is what I think you need to do here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/re-establish-sparksession-using-databricks-connect-after-cluster/td-p/64394" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/re-establish-sparksession-using-databricks-connect-after-cluster/td-p/64394&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 19:03:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/117548#M45526</guid>
      <dc:creator>samshifflett46</dc:creator>
      <dc:date>2025-05-02T19:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pylint github workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/117550#M45527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes I found that solution too, the problem after that was dbutils, pylint identify that as a no imported library. I found a solution at least for me in the pylintrc file I added this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_tasayco_0-1746213218337.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16433iE8C927CAADF28DE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_tasayco_0-1746213218337.png" alt="carlos_tasayco_0-1746213218337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Doing this I avoide this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 19:14:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pylint-github-workflow/m-p/117550#M45527</guid>
      <dc:creator>carlos_tasayco</dc:creator>
      <dc:date>2025-05-02T19:14:30Z</dc:date>
    </item>
  </channel>
</rss>

