summaryrefslogtreecommitdiff
path: root/Omni/Ide
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-01-06 16:22:23 -0500
committerBen Sima <ben@bsima.me>2025-01-06 16:22:23 -0500
commitd2edf150cf2c876971383a4a484f289ce7e7f680 (patch)
tree1cd30c0efe2afa2f0d1ca935738fac22d5687659 /Omni/Ide
parentd9fb7a85c920c9332fba34087fe8527d140b65f0 (diff)
Remove Python main idiom and add coding conventions to README.md
I realized I don't need this stupid `__main__` convention anymore because my build system always calls Python programs like `python -m main`, so I just need to have a function named `main()`. I also started adding some general coding conventions to the README and fixed a typo.
Diffstat (limited to 'Omni/Ide')
-rwxr-xr-xOmni/Ide/MakeTags.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Omni/Ide/MakeTags.py b/Omni/Ide/MakeTags.py
index add07c0..7f09a4e 100755
--- a/Omni/Ide/MakeTags.py
+++ b/Omni/Ide/MakeTags.py
@@ -99,7 +99,3 @@ def ctags(args: list[str], cwd: pathlib.Path = pathlib.Path()) -> None:
]
subprocess.check_call(["ctags", *excludes, *args])
subprocess.check_call(["ctags", "-e", *excludes, *args])
-
-
-if __name__ == "__main__":
- main()