Fix linting
This commit is contained in:
parent
be9e6d1612
commit
6c05f0f837
2 changed files with 12 additions and 11 deletions
7
setup.py
7
setup.py
|
|
@ -1,4 +1,5 @@
|
|||
"""Minimal setup.py for backward compatibility with frontend build check"""
|
||||
|
||||
from pathlib import Path
|
||||
from setuptools import setup
|
||||
from setuptools.command.build_py import build_py
|
||||
|
|
@ -16,8 +17,8 @@ class BuildPyCommand(build_py):
|
|||
|
||||
def run(self):
|
||||
# Check if running in development mode
|
||||
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_develop = any(arg in sys.argv for arg in ["develop", "egg_info"])
|
||||
is_editable = "--editable" in sys.argv or "-e" in sys.argv
|
||||
|
||||
if is_develop or is_editable:
|
||||
# Development mode: friendly reminder
|
||||
|
|
@ -68,6 +69,6 @@ Then run the installation again.
|
|||
|
||||
setup(
|
||||
cmdclass={
|
||||
'build_py': BuildPyCommand,
|
||||
"build_py": BuildPyCommand,
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue