Skip to content

Commit 8846f66

Browse files
committed
fix(git): make scripts with shebang executable
Add check to pre-commit. Remove executable from tests.
1 parent bd84538 commit 8846f66

35 files changed

Lines changed: 11 additions & 76 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ repos:
2020
- id: check-case-conflict
2121
- id: check-docstring-first
2222
- id: check-json
23+
- id: check-shebang-scripts-are-executable
2324
- id: check-toml
2425
- id: check-xml
2526
- id: check-yaml

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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
2+
23
"""Example of announcing 250 services (in this case, a fake HTTP server)."""
34

45
import argparse

examples/async_service_info_request.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
2+
23
"""Example of perodic dump of homekit services.
34
45
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)