Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0811c34

Browse filesBrowse files
committed
refactor!(ruff): Run all automated fixes as of ruff 0.3.4
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes --ignore T201 --ignore F401 --ignore PT014 --ignore RUF100; ruff format . Fixed 15 errors: - src/libvcs/pytest_plugin.py: 15 × PT001 (pytest-fixture-incorrect-parentheses-style)
1 parent 44d3790 commit 0811c34
Copy full SHA for 0811c34

File tree

Expand file treeCollapse file tree

1 file changed

+15
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-15
lines changed

‎src/libvcs/pytest_plugin.py

Copy file name to clipboardExpand all lines: src/libvcs/pytest_plugin.py
+15-15Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def user_path(home_path: pathlib.Path, home_user_name: str) -> pathlib.Path:
9999
return p
100100

101101

102-
@pytest.fixture()
102+
@pytest.fixture
103103
def set_home(
104104
monkeypatch: pytest.MonkeyPatch,
105105
user_path: pathlib.Path,
@@ -108,7 +108,7 @@ def set_home(
108108
monkeypatch.setenv("HOME", str(user_path))
109109

110110

111-
@pytest.fixture()
111+
@pytest.fixture
112112
@skip_if_git_missing
113113
def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
114114
"""Return git configuration, pytest fixture."""
@@ -143,7 +143,7 @@ def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
143143
return gitconfig
144144

145145

146-
@pytest.fixture()
146+
@pytest.fixture
147147
@skip_if_hg_missing
148148
def hgconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
149149
"""Return Mercurial configuration, pytest fixture."""
@@ -164,7 +164,7 @@ def hgconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
164164
return hgrc
165165

166166

167-
@pytest.fixture()
167+
@pytest.fixture
168168
def projects_path(
169169
user_path: pathlib.Path,
170170
request: pytest.FixtureRequest,
@@ -180,7 +180,7 @@ def clean() -> None:
180180
return path
181181

182182

183-
@pytest.fixture()
183+
@pytest.fixture
184184
def remote_repos_path(
185185
user_path: pathlib.Path,
186186
request: pytest.FixtureRequest,
@@ -255,7 +255,7 @@ def _create_git_remote_repo(
255255
return remote_repo_path
256256

257257

258-
@pytest.fixture()
258+
@pytest.fixture
259259
@skip_if_git_missing
260260
def create_git_remote_repo(
261261
remote_repos_path: pathlib.Path,
@@ -288,7 +288,7 @@ def git_remote_repo_single_commit_post_init(remote_repo_path: pathlib.Path) -> N
288288
run(["git", "commit", "-m", "test file for dummyrepo"], cwd=remote_repo_path)
289289

290290

291-
@pytest.fixture()
291+
@pytest.fixture
292292
@skip_if_git_missing
293293
def git_remote_repo(remote_repos_path: pathlib.Path) -> pathlib.Path:
294294
"""Pre-made git repo w/ 1 commit, used as a file:// remote to clone and push to."""
@@ -340,7 +340,7 @@ def svn_remote_repo_single_commit_post_init(remote_repo_path: pathlib.Path) -> N
340340
)
341341

342342

343-
@pytest.fixture()
343+
@pytest.fixture
344344
@skip_if_svn_missing
345345
def create_svn_remote_repo(
346346
remote_repos_path: pathlib.Path,
@@ -365,7 +365,7 @@ def fn(
365365
return fn
366366

367367

368-
@pytest.fixture()
368+
@pytest.fixture
369369
@skip_if_svn_missing
370370
def svn_remote_repo(remote_repos_path: pathlib.Path) -> pathlib.Path:
371371
"""Pre-made. Local file:// based SVN server."""
@@ -403,7 +403,7 @@ def hg_remote_repo_single_commit_post_init(remote_repo_path: pathlib.Path) -> No
403403
run(["hg", "commit", "-m", "test file for hg repo"], cwd=remote_repo_path)
404404

405405

406-
@pytest.fixture()
406+
@pytest.fixture
407407
@skip_if_hg_missing
408408
def create_hg_remote_repo(
409409
remote_repos_path: pathlib.Path,
@@ -430,7 +430,7 @@ def fn(
430430
return fn
431431

432432

433-
@pytest.fixture()
433+
@pytest.fixture
434434
@skip_if_hg_missing
435435
def hg_remote_repo(
436436
remote_repos_path: pathlib.Path,
@@ -444,7 +444,7 @@ def hg_remote_repo(
444444
)
445445

446446

447-
@pytest.fixture()
447+
@pytest.fixture
448448
def git_repo(projects_path: pathlib.Path, git_remote_repo: pathlib.Path) -> GitSync:
449449
"""Pre-made git clone of remote repo checked out to user's projects dir."""
450450
git_repo = GitSync(
@@ -462,7 +462,7 @@ def git_repo(projects_path: pathlib.Path, git_remote_repo: pathlib.Path) -> GitS
462462
return git_repo
463463

464464

465-
@pytest.fixture()
465+
@pytest.fixture
466466
def hg_repo(projects_path: pathlib.Path, hg_remote_repo: pathlib.Path) -> HgSync:
467467
"""Pre-made hg clone of remote repo checked out to user's projects dir."""
468468
hg_repo = HgSync(
@@ -473,7 +473,7 @@ def hg_repo(projects_path: pathlib.Path, hg_remote_repo: pathlib.Path) -> HgSync
473473
return hg_repo
474474

475475

476-
@pytest.fixture()
476+
@pytest.fixture
477477
def svn_repo(projects_path: pathlib.Path, svn_remote_repo: pathlib.Path) -> SvnSync:
478478
"""Pre-made svn clone of remote repo checked out to user's projects dir."""
479479
svn_repo = SvnSync(
@@ -484,7 +484,7 @@ def svn_repo(projects_path: pathlib.Path, svn_remote_repo: pathlib.Path) -> SvnS
484484
return svn_repo
485485

486486

487-
@pytest.fixture()
487+
@pytest.fixture
488488
def add_doctest_fixtures(
489489
request: pytest.FixtureRequest,
490490
doctest_namespace: dict[str, Any],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.