Skip to content

Commit

Permalink
Fix linter failures (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Apr 26, 2023
1 parent 40e2032 commit ded82e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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)
-------------------------------
Expand Down
4 changes: 2 additions & 2 deletions tests/test_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ autosectionlabel
buf
buf2
csidl
dcim
delenv
getuid
highbit
Expand Down

0 comments on commit ded82e7

Please sign in to comment.