Skip to content

Commit c6e97a1

Browse files
committed
enable github actions and add pre-commit hook
1 parent 12e5ea4 commit c6e97a1

File tree

8 files changed

+39
-7
lines changed

8 files changed

+39
-7
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: unit tests
3+
4+
on:
5+
- push
6+
- pull_request
7+
8+
jobs:
9+
test-macos-1015:
10+
runs-on: macos-10.15
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Install dependencies
14+
run: |
15+
python3 --version
16+
python3 -m pip install --upgrade pip
17+
pip3 install tox
18+
- name: Test with tox
19+
run: tox -e py39

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
repos:
3+
- repo: git@github.com:pre-commit/pre-commit-hooks
4+
rev: v4.0.1
5+
hooks:
6+
- id: check-case-conflict
7+
- id: fix-encoding-pragma
8+
- id: check-docstring-first
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-ast
12+
- id: check-byte-order-marker
13+
- id: check-merge-conflict
14+
- id: detect-private-key
15+
- id: mixed-line-ending

.pylintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33

44
[FORMAT]
55
max-line-length=120
6-

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Paul Kremer
1+
Paul Kremer

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
19+
THE SOFTWARE.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
*launchd* is a pythonic interface to interact with OS X's `launchd <https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/launchd.8.html>`_.
88
It provides access to basic querying and interaction with launchd. It is
9-
implemented using the Objective C
9+
implemented using the Objective C
1010
`ServiceManagement framework <https://developer.apple.com/library/mac/documentation/General/Reference/ServiceManagementFwRef/_index.html#//apple_ref/doc/uid/TP40009335>`_
1111
as well as the `launchd` command line utility. Therefore, this python package
1212
can only be used on `OS X <http://en.wikipedia.org/wiki/OS_X>`_
@@ -103,7 +103,7 @@ or, if you want to work using the source tarball:
103103
.. code-block:: bash
104104
105105
$ python setup.py install
106-
106+
107107
108108
Requirements
109109
============

launchd/tests/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
install_requires = ["six", "pyobjc-framework-ServiceManagement"]
3535

36-
if not 'darwin' in sys.platform:
36+
if 'darwin' not in sys.platform:
3737
sys.stderr.write("Warning: The package 'launchd' can only be installed and run on OS X!" + os.linesep)
3838

3939
v = open(os.path.join(os.path.dirname(__file__), 'launchd', '__init__.py'))

0 commit comments

Comments
 (0)