Skip to content

Commit 45c82d1

Browse files
Rotzbuabdraco
andauthored
chore(git): make scripts with shebang executable (#1433)
Co-authored-by: J. Nick Koston <nick@koston.org>
1 parent d46fe85 commit 45c82d1

32 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/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env python
2-
3-
41
"""conftest for zeroconf tests."""
52

63
import threading

0 commit comments

Comments
 (0)