Jelajahi Sumber

Initial commit

skyfffire 1 Minggu lalu
melakukan
24b246b258
5 mengubah file dengan 139 tambahan dan 0 penghapusan
  1. 107 0
      .gitignore
  2. 19 0
      README.md
  3. 0 0
      requirements.txt
  4. 5 0
      src/main.py
  5. 8 0
      tests/test_main.py

+ 107 - 0
.gitignore

@@ -0,0 +1,107 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/

+ 19 - 0
README.md

@@ -0,0 +1,19 @@
+# Python Scripts
+
+This repository contains a collection of Python scripts for various purposes.
+
+## Getting Started
+
+To get started, clone this repository and install the required dependencies:
+
+```bash
+pip install -r requirements.txt
+```
+
+## Usage
+
+To run a script, use the following command:
+
+```bash
+python src/main.py
+```

+ 0 - 0
requirements.txt


+ 5 - 0
src/main.py

@@ -0,0 +1,5 @@
+def main():
+    print("Hello, World!")
+
+if __name__ == "__main__":
+    main()

+ 8 - 0
tests/test_main.py

@@ -0,0 +1,8 @@
+import unittest
+
+class TestMain(unittest.TestCase):
+    def test_main(self):
+        self.assertEqual(True, True)
+
+if __name__ == '__main__':
+    unittest.main()