Skip to content

Commit df05f79

Browse files
committed
tmp
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
1 parent dedb299 commit df05f79

File tree

11 files changed

+621
-116
lines changed

11 files changed

+621
-116
lines changed

xcp-storage/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.mypy_cache
2+
.pytest_cache
3+
.ruff_cache
4+
__pycache__

xcp-storage/pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ignore = [
3939
"UP045" # pyupgrade: non-pep604-annotation-optional
4040
]
4141
select = [
42+
"ANN", # flake8-annotations
4243
"ARG", # flake8-unused-arguments
4344
"B", # flake8-bugbear
4445
"C90", # mccabe
@@ -75,3 +76,7 @@ section-order = [
7576
"local-folder",
7677
"typing"
7778
]
79+
80+
[tool.pytest.ini_options]
81+
pythonpath = ["src", "stubs"]
82+
testpaths = ["tests"]

xcp-storage/src/xcp_storage/backends/drbd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
DRBD_BY_RES_PATH = "/dev/drbd/by-res/"
3939

40+
DRBD_PORT_RANGE = (7000, 8000)
41+
4042
# ------------------------------------------------------------------------------
4143

4244
_EXEC_PATH_DRBDSETUP = "/usr/sbin/drbdsetup"

0 commit comments

Comments
 (0)