Skip to content

Commit d2aa36d

Browse files
committed
Format code using black
1 parent da59f1f commit d2aa36d

File tree

10 files changed

+251
-165
lines changed

10 files changed

+251
-165
lines changed

CHANGELOG.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
Changelog for Show in File Manager
22
==================================
33

4+
1.01 (2021-10-23)
5+
-----------------
6+
- Reformat code with black.
7+
48
1.0.0 (2021-10-04)
59
------------------
6-
- Support [Lumina](https://lumina-desktop.org/)
10+
- Support [Lumina](https://lumina-desktop.org/).
711

812
0.9.0 (2021-09-08)
913
------------------
10-
- Add option to specify file manager to use from command line
11-
- Support [Double Commander](https://doublecmd.sourceforge.io/)
12-
- Support [Krusader](https://krusader.org/)
13-
- Support [SpaceFM](https://ignorantguru.github.io/spacefm/)
14-
- Support [fman](https://fman.io/)
14+
- Add option to specify file manager to use from command line.
15+
- Support [Double Commander](https://doublecmd.sourceforge.io/).
16+
- Support [Krusader](https://krusader.org/).
17+
- Support [SpaceFM](https://ignorantguru.github.io/spacefm/).
18+
- Support [fman](https://fman.io/).
1519

1620
0.0.8 (2021-08-31)
1721
------------------

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Show in File Manager
22

3+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
4+
35
**Show in File Manager** is a Python package to open the system file manager and optionally select
46
files in it. The point is not to _open_ the files, but to _select_ them in the file manager, thereby highlighting the
57
files and allowing the user to quickly do something with them.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = show-in-file-manager
3-
version = 1.0.0
3+
version = 1.0.1
44
author = Damon Lynch
55
author_email = damonlynch@gmail.com
66
description = Open the system file manager and select files in it

src/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Copyright (c) 2021 Damon Lynch
33
# SPDX - License - Identifier: MIT
44

5-
__author__ = 'Damon Lynch'
5+
__author__ = "Damon Lynch"
66
__copyright__ = "Copyright 2021, Damon Lynch"
77

88
from showinfm.showinfm import main
99

10-
if __name__ == '__main__':
11-
main()
10+
if __name__ == "__main__":
11+
main()

src/showinfm/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
# SPDX - License - Identifier: MIT
33

44
from showinfm.showinfm import (
5-
show_in_file_manager, valid_file_manager, user_file_manager, stock_file_manager
5+
show_in_file_manager,
6+
valid_file_manager,
7+
user_file_manager,
8+
stock_file_manager,
69
)

src/showinfm/constants.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66

77
class FileManagerType(Enum):
8-
regular = 1 # file_manager "File1" "File2"
9-
select = 2 # file_manager --select
10-
dir_only_uri = 3 # cannot select files
11-
show_item = 4 # file_manager --show-item
12-
show_items = 5 # file_manager --show-items
13-
win_select = 6 # explorer.exe /select
14-
reveal = 7 # open --reveal (macOS)
15-
dual_panel = 8 # file_manager "File1" "File2"
8+
regular = 1 # file_manager "File1" "File2"
9+
select = 2 # file_manager --select
10+
dir_only_uri = 3 # cannot select files
11+
show_item = 4 # file_manager --show-item
12+
show_items = 5 # file_manager --show-items
13+
win_select = 6 # explorer.exe /select
14+
reveal = 7 # open --reveal (macOS)
15+
dual_panel = 8 # file_manager "File1" "File2"
1616

1717

1818
class Platform(Enum):
@@ -21,5 +21,5 @@ class Platform(Enum):
2121
macos = 3
2222

2323

24-
single_file_only = ('explorer.exe', 'pcmanfm', 'open', 'cutefish-filemanager')
25-
cannot_open_uris = ('fman', 'fman.exe', 'lumina-fm')
24+
single_file_only = ("explorer.exe", "pcmanfm", "open", "cutefish-filemanager")
25+
cannot_open_uris = ("fman", "fman.exe", "lumina-fm")

0 commit comments

Comments
 (0)