-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
90 lines (73 loc) · 1.39 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
[tool.poetry]
name = "barista"
version = "0.1.0"
description = "A Python and Jsonnet framework for handling espanso configurations"
authors = ["Jeppe Klitgaard <hi@jeppe.science>"]
license = "MIT"
[tool.poetry.scripts]
barista = "barista.__main__:run"
[tool.poetry.dependencies]
python = "^3.10"
gojsonnet = "^0.20.0"
PyYAML = "^6.0"
click = "^8.0.3"
pydantic = "^2.5.2"
[tool.poetry.dev-dependencies]
mypy = "^0.920"
black = "^21.9b0"
isort = "^5.9.3"
flake8 = "^4.0.1"
types-PyYAML = "^6.0.1"
poethepoet = "^0.11.0"
ipykernel = "^6.6.0"
pytest = "^6.2.5"
# Mypy
[tool.mypy]
python_version = "3.10"
strict = true
show_error_codes = true
plugins = [
"pydantic.mypy",
]
[[tool.mypy.overrides]]
module = [
"_jsonnet.*",
]
ignore_missing_imports = true
# Black
[tool.black]
line-length = 100
target-version = ["py310"]
# Isort
[tool.isort]
profile = "black"
skip_gitignore = true
line_length = 100
# Tasks
[tool.poe.tasks]
flake8 = "flake8 ./barista"
mypy = "mypy ./barista"
black_check = "black --check ."
isort_check = "isort --check-only ."
black = "black ."
isort = "isort ."
jsonnetfmt = "jsonnetfmt -i **/*.jsonnet"
test = "pytest ."
lint = [
"flake8",
"black_check",
"isort_check",
"mypy",
]
fix = [
"black",
"isort",
"jsonnetfmt",
]
verify = [
"test",
"lint",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"