Skip to content

Commit 7a32c61

Browse files
committed
Switch to platformdirs
1 parent c75f0ef commit 7a32c61

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

formate.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ use_parentheses = true
2828
remove_redundant_aliases = true
2929
default_section = "THIRDPARTY"
3030
known_third_party = [
31-
"appdirs",
3231
"click",
3332
"consolekit",
3433
"domdf_python_tools",
3534
"github",
35+
"platformdirs",
3636
"repo_helper_github",
3737
"requests",
3838
]

repo_helper_github_interactive/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
from typing import Optional, Tuple
3737

3838
# 3rd party
39-
import appdirs
4039
import click
40+
import platformdirs
4141
import repo_helper_github
4242
from consolekit.input import prompt
4343
from consolekit.terminal_colours import ColourTrilean
@@ -65,7 +65,7 @@ class History:
6565
file: PathPlus
6666

6767
def __init__(self):
68-
self.file = PathPlus(appdirs.user_config_dir("github", "repo-helper")) / "interactive.hist"
68+
self.file = PathPlus(platformdirs.user_config_dir("github", "repo-helper")) / "interactive.hist"
6969

7070
def read(self):
7171
"""

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
appdirs>=1.4.4
21
click>=7.1.2
32
consolekit>=0.8.2
43
domdf-python-tools>=2.4.0
4+
platformdirs>=3.6.0
55
repo-helper-github>=0.5.0

stubs.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ commands = python3 -m perflint repo_helper_github_interactive {posargs}
120120
basepython = python3.8
121121
ignore_errors = True
122122
changedir = {toxinidir}
123-
deps =
124-
mypy==0.800
125-
-r{toxinidir}/stubs.txt
123+
deps = mypy==0.800
126124
commands = mypy repo_helper_github_interactive {posargs}
127125

128126
[testenv:pyup]

0 commit comments

Comments
 (0)