Skip to content

Commit 4c04edf

Browse files
committed
add pre_commit.sh
1 parent e99d23f commit 4c04edf

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

generate_stub.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pip install . --user
22
pybind11-stubgen symusic.core --numpy-array-remove-parameters -o .
3-
ruff format symusic/core.pyi
4-
pip uninstall symusic
3+
pip uninstall symusic

pre_commit.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pre-commit run --all-files

symusic/core.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from __future__ import annotations
2-
import numpy
2+
33
import typing
44

5+
import numpy
6+
57
__all__ = [
68
"ControlChangeQuarter",
79
"ControlChangeQuarterList",

symusic/factory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os.path
22
from dataclasses import dataclass
33
from pathlib import Path
4-
from typing import Generic, TypeVar, Union, Optional
4+
from typing import Generic, Optional, TypeVar, Union
55

66
from . import core # type: ignore
77
from . import types as smt

0 commit comments

Comments
 (0)