Skip to content

Commit

Permalink
Fixed linting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
justalemon committed Jul 5, 2024
1 parent c693b5c commit 3c00d0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion leek/modding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# flake8: noqa: F401

from .diagnoser import Diagnoser
from .rage import Rage
from .modcomments import ModComments
from .rage import Rage
5 changes: 3 additions & 2 deletions leek/modding/modcomments.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import os

from discord import Cog, ApplicationContext
from discord import ApplicationContext, Cog
from discord.ext import tasks

Check failure on line 8 in leek/modding/modcomments.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (F401)

leek/modding/modcomments.py:8:25: F401 `discord.ext.tasks` imported but unused
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
from selenium.webdriver.chrome.service import Service as ChromeService
Expand Down Expand Up @@ -38,7 +39,7 @@ def __init__(self, bot: LeekBot):
options.add_argument("--headless=new")
self.driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=options)
else:
raise ValueError(f"Unrecognized driver: {desired_driver}")
raise ValueError(f"Unrecognized driver: {desired_driver}") # noqa: TRY003

self.driver.get("https://www.gta5-mods.com")

Expand Down

0 comments on commit 3c00d0e

Please sign in to comment.