mirror of https://github.com/zulip/zulip.git
ruff: Fix FURB177 Prefer `Path.cwd()` over `Path().resolve()`.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7b69c93c50
commit
8e9ead2575
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import pathlib
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
from pathlib import Path
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
bot_commits = 0
|
bot_commits = 0
|
||||||
|
@ -36,7 +36,7 @@ def retrieve_log(repo: str, revisions: str) -> List[str]:
|
||||||
|
|
||||||
|
|
||||||
def find_path(repository: str) -> str:
|
def find_path(repository: str) -> str:
|
||||||
return str(pathlib.Path().resolve().parents[0] / repository)
|
return str(Path.cwd().parent / repository)
|
||||||
|
|
||||||
|
|
||||||
def process_repo(
|
def process_repo(
|
||||||
|
|
Loading…
Reference in New Issue