-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (101 loc) · 2.67 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
[tool.poetry]
name = "eventsourcing-grpc"
version = "0.1.2"
description = "Python package for eventsourcing with gRPC"
authors = [
"John Bywater <john.bywater@appropriatesoftware.net>",
]
license = "BSD 3-Clause"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
]
readme = "README.md"
homepage = "https://github.com/pyeventsourcing/eventsourcing-grpc"
repository = "https://github.com/pyeventsourcing/eventsourcing-grpc"
include = ["eventsourcing_grpc/py.typed"]
[tool.poetry.dependencies]
python = "^3.7"
eventsourcing = { version = "~9.2.11" }
#eventsourcing = { git = "https://github.com/pyeventsourcing/eventsourcing.git", branch = "9.2"}
grpcio = "~1.44.0"
protobuf = "~3.20.0"
[tool.poetry.scripts]
eventsourcing_grpc_server = 'eventsourcing_grpc.console:eventsourcing_grpc_server'
eventsourcing_grpc_runner = 'eventsourcing_grpc.console:eventsourcing_grpc_runner'
[tool.poetry.dev-dependencies]
black = { version = "*", allow-prereleases = true }
flake8 = "*"
flake8-broken-line = "*"
flake8-bugbear = "*"
flake8-coding = "*"
flake8-isort = "*"
flake8-tidy-imports = "*"
isort = "*"
mypy = "*"
pre-commit = "*"
pre-commit-hooks = "*"
pytest = "*"
pytest-cov = "*"
grpcio-tools = "*"
types-protobuf = "*"
mypy-protobuf = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ["py38"]
include = '\.pyi?$'
preview = true
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.pip-cache
| \.poetry
| \.venv
| \.vscode
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
branch = true
omit = []
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain about some magic methods:
"def __str__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about empty realizations
"pass",
# Don't complain about abstract methods
"@abc.abstractmethod"
]
ignore_errors = true
precision = 2
[tool.isort]
combine_as_imports = true
profile = "black"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
skip = ".eggs,.pip-cache,.poetry,venv,.venv,dist"