2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-22 14:50:53 +00:00

Add RUF rules

This commit is contained in:
Matthias Mair
2024-08-20 00:03:39 +02:00
parent a2dfac593b
commit 3e5432db47
22 changed files with 63 additions and 35 deletions

@ -9,6 +9,7 @@ import subprocess
import sys
from pathlib import Path
from platform import python_version
from typing import Optional
from invoke import task
@ -135,7 +136,7 @@ def managePyPath():
return managePyDir().joinpath('manage.py')
def run(c, cmd, path: Path = None, pty=False, env=None):
def run(c, cmd, path: Optional[Path] = None, pty=False, env=None):
"""Runs a given command a given path.
Args: