From 8a645c513b8dd5f85a958d4b6a97179c31e079ba Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 19 Feb 2024 21:06:40 +0000 Subject: Lint codebase with new ruff rules --- dev/bot/__main__.py | 1 + docs/conf.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/bot/__main__.py b/dev/bot/__main__.py index ea74649c..43c4dbd5 100644 --- a/dev/bot/__main__.py +++ b/dev/bot/__main__.py @@ -32,5 +32,6 @@ async def main() -> None: async with bot: await bot.start(os.getenv("BOT_TOKEN")) + if os.getenv("IN_CI", "").lower() != "true": asyncio.run(main()) diff --git a/docs/conf.py b/docs/conf.py index b06300a3..2b68fc0f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -227,7 +227,6 @@ if os.getenv("BUILD_DOCS_FOR_HEAD", "False").lower() == "true": with contextlib.suppress(git.InvalidGitRepositoryError): branch = git.Repo(PROJECT_ROOT).active_branch.name - if branch: logger.info(f"Adding branch {branch} to build whitelist.") smv_branch_whitelist = f"main|{branch}" -- cgit v1.2.3