Skip to content

Commit

Permalink
Explicitly specify the Live import as a standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Jan 12, 2024
1 parent 6ca2d69 commit d7a53cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
# track_right_button=cc_button(51),
# # ...
# )
import Live
import typing

from ableton.v3.control_surface import MIDI_CC_TYPE, MIDI_NOTE_TYPE, MIDI_PB_TYPE

import Live

DEFAULT_CHANNEL = 0
MAP_MODES = Live.MidiMap.MapMode

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ extend-select = ["ARG", "B", "E", "I", "W"]
# Turn off strict max line length; B950 allows for exceeding the max
# line length in some cases.
extend-ignore = ["E501"]

[tool.ruff.lint.isort]
extra-standard-library = ["Live"]
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
decompyle3~=3.9.0

# Type checker.
pyright~=1.1.345
pyright==1.1.345

# Formatter and linter.
ruff~=0.1.9
ruff==0.1.13

###
# Packages that should be available in Live's `site-packages` folder,
Expand Down
3 changes: 1 addition & 2 deletions transport.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Live
import typing

from ableton.v3.control_surface.components import (
TransportComponent as TransportComponentBase,
)
from ableton.v3.control_surface.controls import ButtonControl

import Live

TEMPO_MIN = 20.0
TEMPO_MAX = 999.0

Expand Down

0 comments on commit d7a53cd

Please sign in to comment.