From 8e9ead25755d8f5dc57ec7f33de78b0b01abab03 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 30 Jun 2024 14:32:54 -0400 Subject: [PATCH] ruff: Fix FURB177 Prefer `Path.cwd()` over `Path().resolve()`. Signed-off-by: Anders Kaseorg --- tools/total-contributions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/total-contributions b/tools/total-contributions index 02a6f94a29..244748f1ae 100755 --- a/tools/total-contributions +++ b/tools/total-contributions @@ -1,10 +1,10 @@ #!/usr/bin/env python3 import argparse import os -import pathlib import subprocess import sys from collections import defaultdict +from pathlib import Path from typing import Dict, List bot_commits = 0 @@ -36,7 +36,7 @@ def retrieve_log(repo: str, revisions: str) -> List[str]: def find_path(repository: str) -> str: - return str(pathlib.Path().resolve().parents[0] / repository) + return str(Path.cwd().parent / repository) def process_repo(