-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
112 lines (93 loc) · 2.87 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
[tool.poetry]
name = "aries_endorser_service"
version = "0.0.1"
description = "Hyperledger Aries Endorser Service is a controller for an Aries Cloudagent Python agent acting as endorser."
authors = ["Hyperledger Aries <aries@lists.hyperledger.org>"]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "endorser"}]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
repository = "https://github.com/hyperledger/aries-endorser-service"
[tool.poetry.dependencies]
python = "^3.12"
aiohttp = "^3.9.5"
alembic = "^1.13.1"
asyncpg = "^0.29.0"
fastapi = {version = "^0.114.0", extras = ["standard"]}
psycopg2-binary = "^2.9.9"
pydantic-settings = "^2.2.1"
python-jose = {version = "^3.3.0", extras = ["cyptography"]}
requests = "^2.32.3"
SQLAlchemy = {version = "^2.0.30", extras = ["asyncio"]}
sqlmodel = "0.0.19" # see https://github.com/fastapi/sqlmodel/discussions/1048 before upgrading
starlette-context = "^0.3.6"
[tool.poetry.group.dev.dependencies]
pre-commit = "~3.8.0"
# Sync with version in .pre-commit-config.yaml
ruff = "^0.6.4"
# Sync with version in .github/workflows/blackformat.yml
# Sync with version in .pre-commit-config.yaml
black = "^24.4.2"
# testing
behave = "^1.2.6"
pytest = "^8.2.0"
pytest-asyncio = "^0.24.0"
pytest-cov = "^5.0.0"
pytest-ruff = "^0.4.1"
[tool.poetry.extras]
[tool.poetry.scripts]
aca-py = "endorser.main:main"
[tool.ruff]
lint.select = ["B006", "C", "D", "E", "F"]
lint.ignore = [
# Google Python Doc Style
"D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407",
"D408", "D409", "D413",
"D202", # Allow blank line after docstring
"D104", # Don't require docstring in public package
# Things that we should fix, but are too much work right now
"D417", "C901",
]
include = ["endorser/**/*.py"]
line-length = 90
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["B006", "D", "E501", "F841"]
[tool.pytest.ini_options]
testpaths = "endorser"
addopts = """
--quiet --junitxml=./test-reports/junit.xml
--cov-config .coveragerc --cov=endorser --cov-report term --cov-report xml
--ruff
"""
markers = []
junit_family = "xunit1"
asyncio_mode = "auto"
filterwarnings = [
'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning', # Ignore specific DeprecationWarning for old packages using distutils version class
]
[tool.coverage.run]
omit = [
"*/tests/*",
"demo/*",
"docker/*",
"docs/*",
"scripts/*",
]
data_file = "test-reports/.coverage"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract"
]
precision = 2
skip_covered = true
show_missing = true
[tool.coverage.xml]
output = "test-reports/coverage.xml"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"