-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
144 lines (127 loc) · 4.43 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "fl-studio-api-stubs"
version = "37.0.1"
description = "Stub code, type definitions and documentation for the FL Studio Python API"
readme = "README.md"
authors = [{ name = "Maddy Guthridge", email = "[email protected]" }]
license = "LGPL-3.0-only"
keywords = [
"fl-studio",
"midi",
"api",
"documentation",
"stubs",
"fl",
"studio",
"daw",
"controller",
"image-line",
]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
"Typing :: Stubs Only",
]
requires-python = ">= 3.11, < 4.0"
[project.urls]
repository = "https://github.com/IL-Group/FL-Studio-Api-Stubs/issues"
documentation = "https://il-group.github.io/FL-Studio-API-Stubs/"
[tool.poetry]
include = [
# Explicitly include all .py files in `build_lib`, otherwise, they will be
# skipped due to the `.gitignore`.
"build_lib/**/*.py",
# And the `py.typed` files
"build_lib/**/py.typed",
# NOTE: Any extra files won't be bundled unless explicitly included here.
# Am considering making transdoc skip files in the `.gitignore`, which
# would allow us to blindly include everything in `build_lib` without also
# including stuff like .pyc files.
]
packages = [
# MIDI controller scripting
{ include = "arrangement", from = "build_lib/midi_controller_scripting" },
{ include = "channels", from = "build_lib/midi_controller_scripting" },
{ include = "device", from = "build_lib/midi_controller_scripting" },
{ include = "general", from = "build_lib/midi_controller_scripting" },
{ include = "launchMapPages", from = "build_lib/midi_controller_scripting" },
{ include = "mixer", from = "build_lib/midi_controller_scripting" },
{ include = "patterns", from = "build_lib/midi_controller_scripting" },
{ include = "playlist", from = "build_lib/midi_controller_scripting" },
{ include = "plugins", from = "build_lib/midi_controller_scripting" },
{ include = "screen", from = "build_lib/midi_controller_scripting" },
{ include = "transport", from = "build_lib/midi_controller_scripting" },
{ include = "ui", from = "build_lib/midi_controller_scripting" },
# MIDI controller scripting extra libraries
{ include = "midi", from = "build_lib/midi_controller_scripting" },
{ include = "utils", from = "build_lib/midi_controller_scripting" },
# API stubs extra modules
{ include = "fl_classes", from = "build_lib/midi_controller_scripting" },
# Edison scripting
{ include = "enveditor", from = "build_lib/edison_scripting" },
# Piano roll scripting
{ include = "flpianoroll", from = "build_lib/piano_roll_scripting" },
]
[tool.poetry.group.build.dependencies]
# Build dependencies -- required to build the library
transdoc = { extras = ["python"], version = "^1.1.0" }
griffe = "^1.0.0"
[tool.poetry.group.docs.dependencies]
# Docs depdnencies -- required to build documentation site
# Note build dependencies are also required
mkdocs = "^1.4.2"
mkdocs-gen-files = "^0.5.0"
mkdocs-material = "^9.5.0"
mkdocstrings = { version = ">=0.24,<0.27", extras = ["python"] }
mkdocs-awesome-pages-plugin = "^2.9.2"
mkdocs-section-index = "^0.3.8"
[tool.poetry.group.ci.dependencies]
# CI dependencies -- required to run continuous integration, including
# linting, type checking, etc
mypy = "^1.1.1"
typing-extensions = "^4.5.0"
flapi = "^1.0.1"
ruff = "^0.9.6"
[tool.mypy]
check_untyped_defs = true
files = ["src", "scripts", "data"]
[tool.ruff]
line-length = 79
include = [
"src/**/*.py",
"scripts/**/*.py",
"data/**/*.py",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ['E501']
[tool.ruff.lint.per-file-ignores]
# Ignore lints that involve significant rewrites in utils library, since it
# is intentionally the same as that in FL Studio
"src/midi_controller_scripting/utils/*" = [
# Ternary operator
"SIM108",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"