From 3f416270a7534f0ddb12aec0f7b33dcf47c87ff5 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Fri, 1 Nov 2024 11:08:12 -0700 Subject: [PATCH] Fix lints --- .github/workflows/ci.yml | 2 +- make_common.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54cb367..c2a10b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,4 +31,4 @@ jobs: run: uvx black . --check --diff --color - name: Lint Python code with flake8 - run: uvx flake8 . + run: uvx flake8 . --exclude .venv diff --git a/make_common.py b/make_common.py index f1b7a1a..0161085 100644 --- a/make_common.py +++ b/make_common.py @@ -10,11 +10,9 @@ from pathlib import Path import argparse import subprocess -import venv -import sys -def build_docs(root, env, builder, clear, serve, debug): +def build_docs(root, builder, clear, serve, debug): dest = root / "build" args = ["-b", builder, "-d", dest / "doctrees"] @@ -43,7 +41,7 @@ def build_docs(root, env, builder, clear, serve, debug): try: subprocess.run( [ - env.bin("sphinx-autobuild" if serve else "sphinx-build"), + ("sphinx-autobuild" if serve else "sphinx-build"), *args, root / "src", dest / builder, @@ -139,7 +137,7 @@ def main(root): args = parser.parse_args() rendered = build_docs( - root, env, "xml" if args.xml else "html", args.clear, args.serve, args.debug + root, "xml" if args.xml else "html", args.clear, args.serve, args.debug ) if args.check_links: