-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (63 loc) · 1.73 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
[tool.poetry]
name = "open-sync-board-gui"
version = "0.1.0"
description = ""
authors = [
"Annika Muecke <[email protected]>",
"Robert Richer <[email protected]>"
]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.7.1,<3.10"
PySide2 = "^5.15.2"
pyserial = "^3.5"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
poethepoet = "^0.12.3"
black = {version = "^22.1.0", extras = ["d"]}
isort = "^5.10.1"
coverage = "^6.3.1"
ruff = "^0.0.261"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py38']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| docs
| build
| dist
| \.virtual_documents
| open_sync_board_gui/constants
)/
)
'''
[tool.poe.tasks]
_black = "black ."
_black_check = "black . --check"
_isort = "isort **/*.py"
_isort_check = "isort **/*.py --check-only"
# Reformat all files using black and lint using ruff
_format_black = "black ."
_format_ruff = "ruff . --fix-only"
format = { sequence = ["_format_black", "_format_ruff"], help = "Format all files." }
lint = { cmd = "ruff open_sync_board_gui --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff open_sync_board_gui --format=github"
_check_black = "black . --check"
ci_check = { sequence = ["_check_black", "_lint_ci"], help = "Check all potential format and linting issues." }
update_version = { script = "_tasks:task_update_version()" }
# compile *.ui-files
update_ui = "./scripts/compile_ui_files.sh"
[tool.poetry.scripts]
run-sync-board = 'open_sync_board_gui.scripts.start_gui:run'