Skip to content

Commit b597249

Browse files
authored
Merge pull request #38 from homebysix/pre-commit
Pre commit and read me updates
2 parents e8412f8 + be26e38 commit b597249

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.4.0
3+
rev: v4.2.0
44
hooks:
55
- id: check-added-large-files
66
args: [--maxkb=100]
77
- id: check-ast
8-
- id: check-byte-order-marker
98
- id: check-case-conflict
109
- id: check-docstring-first
1110
- id: check-merge-conflict
11+
- id: fix-byte-order-marker
1212
- id: mixed-line-ending
1313
- id: no-commit-to-branch
1414
args: [--branch, main]
1515
- id: trailing-whitespace
1616
args: [--markdown-linebreak-ext=md]
1717
- repo: https://github.com/ambv/black
18-
rev: 20.8b1
18+
rev: 22.3.0
1919
hooks:
2020
- id: black
2121
- repo: https://github.com/asottile/blacken-docs
22-
rev: v1.9.2
22+
rev: v1.12.1
2323
hooks:
2424
- id: blacken-docs
25-
additional_dependencies: [black==20.8b1]
25+
additional_dependencies: [black==22.3.0]

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ Originally created as a [Gist](https://gist.github.com/gregneagle/5c422d709c9361
88

99
The very capable [dockutil](https://github.com/kcrawford/dockutil) tool serves a similar function to docklib. Why would Mac admins choose one over the other?
1010

11-
The primary benefit of docklib is that it allows the Dock to be manipulated in a "Pythonic" way. By parsing the Dock configuration into an object with attributes and data structures that can be modified using familiar functions like `.append()` and `.insert()`, docklib aims to make Python scripters feel at home.
11+
The primary benefit of **docklib** is that it allows the Dock to be manipulated in a "Pythonic" way. By parsing the Dock configuration into an object with attributes and data structures that can be modified using familiar functions like `.append()` and `.insert()`, docklib aims to make Python scripters feel at home.
1212

13-
In contrast, dockutil behaves more like a shell command-line utility. This makes dockutil a good choice if you're more comfortable writing user setup scripts in bash or zsh.
14-
15-
Dockutil also has an `--allhomes` argument that allows Dock configuration for all users to be modified at the same time. Docklib isn't designed for this, instead focusing on configuring the Dock for the user that is currently logged in (for example, via an [outset](https://github.com/chilcote/outset) `login-once` or `login-every` script).
13+
In contrast, **dockutil** behaves more like a shell command-line utility. This makes dockutil a good choice if you're more comfortable writing user setup scripts in bash or zsh. Dockutil also has an `--allhomes` argument that allows Dock configuration for all users to be modified at the same time. Docklib isn't designed for this, instead focusing on configuring the Dock for the user that is currently logged in (for example, via an [outset](https://github.com/chilcote/outset) `login-once` or `login-every` script). [Here's](https://appleshare.it/posts/use-dockutil-in-a-script/) a great article to get you started with dockutil, if that sounds like what you're after.
1614

1715
## Installation
1816

0 commit comments

Comments
 (0)