-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (50 loc) · 1.18 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
[tool.poetry]
name = "pyuicprecommit"
version = "0.1.0"
description = "Pre-commit hook to validate Qt UI files have been generated using pyuic"
authors = ["hsaunders1904"]
readme = "README.md"
[tool.poetry.scripts]
pyuic-pre-commit = 'pyuicprecommit:main_with_exit'
[tool.poetry.dependencies]
python = "^3.8, <3.13"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.4.0"
black = "^23.9.1"
ruff = "^0.0.292"
mypy = "^1.5.1"
[tool.poetry.group.test.dependencies]
pre-commit = "^3.4.0"
pytest = "^7.4.2"
gitpython = "^3.1.37"
pyside6 = "6.6.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
extend-exclude = "tests/data/*"
[tool.ruff]
line-length = 89
select = [
"C90", # mccabe
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle-error
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PTH", # flake8-use-pathlib
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pydocstyle-warning
]
[tool.ruff.per-file-ignores]
"tests/data/*" = ["ALL"]
"tests/**/test_*.py" = [
# Allow asserts in tests
"S101",
# Allow undocumented code in tests
"D",
]
[tool.ruff.pydocstyle]
convention = "numpy"