Skip to content

Commit

Permalink
fix python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Jan 16, 2024
1 parent 16dc315 commit 5cf7340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/update_dbeaver_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from natsort import natsorted
import requests


def get_latest_version(url, search_text):
"""
Get latest version number of a database driver from the Maven repository.
Expand All @@ -16,7 +17,7 @@ def get_latest_version(url, search_text):
The URL of the Maven repository containing the driver
search_text : str
Text to search for in the repository, to distinguish the driver from other files
Returns
-------
list
Expand All @@ -27,6 +28,7 @@ def get_latest_version(url, search_text):
root = html.fromstring(remote_page.content)
return natsorted([v for v in root.xpath("//a[contains(text(), '" + search_text + "')]/@href") if v != "../"])[-1].replace("/", "")


drivers = [
{
'name': "mssql_jdbc",
Expand Down

0 comments on commit 5cf7340

Please sign in to comment.