Fix linting

This commit is contained in:
yangdx 2025-10-13 23:50:02 +08:00
parent be9e6d1612
commit 6c05f0f837
2 changed files with 12 additions and 11 deletions

View file

@ -1,4 +1,5 @@
"""Minimal setup.py for backward compatibility with frontend build check""" """Minimal setup.py for backward compatibility with frontend build check"""
from pathlib import Path from pathlib import Path
from setuptools import setup from setuptools import setup
from setuptools.command.build_py import build_py from setuptools.command.build_py import build_py
@ -16,8 +17,8 @@ class BuildPyCommand(build_py):
def run(self): def run(self):
# Check if running in development mode # Check if running in development mode
is_develop = any(arg in sys.argv for arg in ['develop', 'egg_info']) is_develop = any(arg in sys.argv for arg in ["develop", "egg_info"])
is_editable = '--editable' in sys.argv or '-e' in sys.argv is_editable = "--editable" in sys.argv or "-e" in sys.argv
if is_develop or is_editable: if is_develop or is_editable:
# Development mode: friendly reminder # Development mode: friendly reminder
@ -68,6 +69,6 @@ Then run the installation again.
setup( setup(
cmdclass={ cmdclass={
'build_py': BuildPyCommand, "build_py": BuildPyCommand,
} }
) )