diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 80bb9059..815bee1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: add-trailing-comma args: [--py36-plus] - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.3.2 hooks: - id: pyupgrade args: ["--py37-plus"] @@ -74,6 +74,6 @@ repos: - id: check-hooks-apply - id: check-useless-excludes - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.9.2" + rev: "0.10.0" hooks: - id: pyproject-fmt diff --git a/CHANGES.rst b/CHANGES.rst index 3c39ac0d..a85b4e80 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,9 +1,13 @@ platformdirs Changelog ====================== +platformdirs 3.4.0 (2023-04-26) +------------------------------- +- introduce ``user_videos_dir`` + platformdirs 3.3.0 (2023-04-25) ------------------------------- -- introduce user_pictures_dir() +- introduce ``user_pictures_dir`` platformdirs 3.2.0 (2023-03-25) ------------------------------- diff --git a/tests/test_unix.py b/tests/test_unix.py index cbf87bcb..111ddf08 100644 --- a/tests/test_unix.py +++ b/tests/test_unix.py @@ -22,7 +22,7 @@ def test_user_media_dir(mocker: MockerFixture, prop: str) -> None: @pytest.mark.parametrize( - "env_var,prop", + ("env_var", "prop"), [ pytest.param("XDG_DOCUMENTS_DIR", "user_documents_dir", id="user_documents_dir"), pytest.param("XDG_PICTURES_DIR", "user_pictures_dir", id="user_pictures_dir"), @@ -41,7 +41,7 @@ def test_user_media_dir_env_var(mocker: MockerFixture, env_var: str, prop: str) @pytest.mark.parametrize( - "env_var,prop,default_abs_path", + ("env_var", "prop", "default_abs_path"), [ pytest.param("XDG_DOCUMENTS_DIR", "user_documents_dir", "/home/example/Documents", id="user_documents_dir"), pytest.param("XDG_PICTURES_DIR", "user_pictures_dir", "/home/example/Pictures", id="user_pictures_dir"), diff --git a/whitelist.txt b/whitelist.txt index e56ffc40..661054e9 100644 --- a/whitelist.txt +++ b/whitelist.txt @@ -7,6 +7,7 @@ autosectionlabel buf buf2 csidl +dcim delenv getuid highbit