Skip to content

Commit 9098a80

Browse files
committed
fix(git): make scripts with shebang executable
Add check to pre-commit.
1 parent 8eac029 commit 9098a80

35 files changed

Lines changed: 10 additions & 10 deletions

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ repos:
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
1717
rev: v5.0.0
1818
hooks:
19-
- id: debug-statements
2019
- id: check-builtin-literals
2120
- id: check-case-conflict
2221
- id: check-docstring-first
2322
- id: check-json
23+
- id: check-shebang-scripts-are-executable
2424
- id: check-toml
2525
- id: check-xml
2626
- id: check-yaml
27+
- id: debug-statements
2728
- id: detect-private-key
2829
- id: end-of-file-fixer
2930
- id: trailing-whitespace
30-
- id: debug-statements
3131
- repo: https://github.com/pre-commit/mirrors-prettier
3232
rev: v4.0.0-alpha.8
3333
hooks:

examples/async_apple_scanner.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
"""Scan for apple devices."""
44

examples/async_browser.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
"""Example of browsing for a service.
44

examples/async_registration.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22
"""Example of announcing 250 services (in this case, a fake HTTP server)."""
33

44
import argparse

examples/async_service_info_request.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22
"""Example of perodic dump of homekit services.
33
44
This example is useful when a user wants an ondemand

examples/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
"""Example of browsing for a service.
44

examples/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
"""Example of announcing a service (in this case, a fake HTTP server)"""
44

examples/resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
"""Example of resolving a service with a known name"""
44

examples/self_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22

33
import logging
44
import socket

tests/__init__.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)