1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00

Fix lint.py

This commit is contained in:
RGBCube 2022-12-17 17:52:17 +03:00
parent 92095af057
commit 3813a869f7
3 changed files with 6 additions and 3 deletions

View file

@ -2,9 +2,12 @@ from __future__ import annotations
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parent.parent.parent / "minearchy_bot"
ROOT_DIR = Path(__file__).resolve().parent.parent.parent.parent / "minearchy_bot"
for fp in ROOT_DIR.rglob("__init__.py"):
if fp.parent.name == "minearchy_bot":
continue
if not (content := fp.read_text()):
continue

View file

@ -7,7 +7,7 @@ unimport ./ --ignore-init --gitignore -r
isort ./
# run our lint script
python ./.github/workflows/lint.py
python ./.github/workflows/scripts/lint.py
# run flynt
flynt ./ -tc

View file

@ -1,9 +1,9 @@
from __future__ import annotations
from asyncio import gather as await_parallel
from contextlib import suppress as suppress_error
from traceback import format_exception as format_exit
from typing import TYPE_CHECKING
from asyncio import gather as await_parallel
from discord import HTTPException
from discord.ext.commands import (