Skip to content

Commit c4aa01b

Browse files
committedJul 26, 2024
fix lint
1 parent b4f027e commit c4aa01b

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed
 

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "git-hg-sync"
77
readme = "README.md"
88
requires-python = ">=3.10"
99
version = "0.1"
10-
dependencies = ['kombu', 'mozillapulse', 'GitPython', 'mozlog', "pydantic"]
10+
dependencies = ['kombu', 'mozillapulse', 'GitPython', 'mozlog', "pydantic", "tomllib"]
1111

1212
[tool.ruff]
1313
line-length = 100

‎tests/test_repo_synchronizer.py

+21-18
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,33 @@
77

88
@pytest.fixture
99
def pulse_config():
10-
return PulseConfig(**{
11-
"userid": "test_user",
12-
"host": "pulse.mozilla.org",
13-
"port": 5671,
14-
"exchange": "exchange/test_user/test",
15-
"routing_key": "#",
16-
"queue": "queue/test_user/test",
17-
"password": "PULSE_PASSWORD",
18-
})
10+
return PulseConfig(
11+
**{
12+
"userid": "test_user",
13+
"host": "pulse.mozilla.org",
14+
"port": 5671,
15+
"exchange": "exchange/test_user/test",
16+
"routing_key": "#",
17+
"queue": "queue/test_user/test",
18+
"password": "PULSE_PASSWORD",
19+
}
20+
)
1921

2022

2123
@pytest.fixture
2224
def mappings():
2325
return {
24-
"myrepo": MappingConfig(**{
25-
"git_repository": "myforge/myrepo.git",
26-
"rules": {
27-
"rule1": {
28-
"branch_pattern": "branch_name",
29-
"mercurial_repository": "myforge/myhgrepo"
30-
31-
}
26+
"myrepo": MappingConfig(
27+
**{
28+
"git_repository": "myforge/myrepo.git",
29+
"rules": {
30+
"rule1": {
31+
"branch_pattern": "branch_name",
32+
"mercurial_repository": "myforge/myhgrepo",
33+
}
34+
},
3235
}
33-
})
36+
)
3437
}
3538

3639

0 commit comments

Comments
 (0)
Failed to load comments.