Skip to content

Commit dd3edcf

Browse files
authored
Initial commit
0 parents  commit dd3edcf

File tree

105 files changed

+6516
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+6516
-0
lines changed

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [kyegomez]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: #Nothing

.github/ISSUE_TEMPLATE/bug_report.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a detailed report on the bug and it's root cause. Conduct root cause error analysis
4+
title: "[BUG] "
5+
labels: bug
6+
assignees: kyegomez
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is and what the main root cause error is. Test very thoroughly before submitting.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: 'kyegomez'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Thank you for contributing to Zeta!
2+
3+
Replace this comment with:
4+
- Description: a description of the change,
5+
- Issue: the issue # it fixes (if applicable),
6+
- Dependencies: any dependencies required for this change,
7+
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
8+
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
9+
10+
If you're adding a new integration, please include:
11+
1. a test for the integration, preferably unit tests that do not rely on network access,
12+
2. an example notebook showing its use.
13+
14+
Maintainer responsibilities:
15+
- nn / Misc / if you don't know who to tag: [email protected]
16+
- tokenizers: [email protected]
17+
- training / Prompts: [email protected]
18+
19+
20+
If no one reviews your PR within a few days, feel free to [email protected]
21+
22+
See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/zeta

.github/dependabot.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+

.github/labeler.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# this is a config file for the github action labeler
2+
3+
# Add 'label1' to any changes within 'example' folder or any subfolders
4+
example_change:
5+
- example/**
6+
7+
# Add 'label2' to any file changes within 'example2' folder
8+
example2_change: example2/*
9+
10+
# Add label3 to any change to .txt files within the entire repository. Quotation marks are required for the leading asterisk
11+
text_files:
12+
- '**/*.txt'
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Linting and Formatting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint_and_format:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
run: pip install --no-cache-dir -r requirements.txt
23+
24+
- name: Find Python files
25+
run: find swarms_torch -name "*.py" -type f -exec autopep8 --in-place --aggressive --aggressive {} +
26+
27+
- name: Push changes
28+
uses: ad-m/github-push-action@master
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cos_integration.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install dependencies
21+
run: pip install --no-cache-dir -r requirements.txt
22+
23+
- name: Run unit tests
24+
run: pytest tests/unit
25+
26+
- name: Run integration tests
27+
run: pytest tests/integration
28+
29+
- name: Run code coverage
30+
run: pytest --cov=swarms tests/
31+
32+
- name: Run linters
33+
run: pylint swarms
34+
35+
- name: Build documentation
36+
run: make docs
37+
38+
- name: Validate documentation
39+
run: sphinx-build -b linkcheck docs build/docs
40+
41+
- name: Run performance tests
42+
run: pytest tests/performance

.github/workflows/docs.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docs WorkFlow
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
- develop
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.10'
17+
- run: pip install mkdocs-material
18+
- run: pip install "mkdocstrings[python]"
19+
- run: mkdocs gh-deploy --force

.github/workflows/docs_test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
run: pip install --no-cache-dir -r requirements.txt
23+
24+
- name: Build documentation
25+
run: make docs
26+
27+
- name: Validate documentation
28+
run: sphinx-build -b linkcheck docs build/docs

.github/workflows/label.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request_target]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/[email protected]
21+
with:
22+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/lints.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
run: pip install --no-cache-dir -r requirements.txt
23+
24+
- name: Run linters
25+
run: pylint swarms_torch
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pull Request Checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
run: pip install --no-cache-dir -r requirements.txt
23+
24+
- name: Run tests and checks
25+
run: |
26+
pytest tests/
27+
pylint swarms_torch
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: readthedocs/actions
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
paths:
7+
- "docs/**"
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
pull-request-links:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: readthedocs/actions/preview@v1
17+
with:
18+
project-slug: swarms_torch

.github/workflows/pylint.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pylint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.9", "3.10"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --no-cache-dir --upgrade pip
20+
pip install pylint
21+
- name: Analysing the code with pylint
22+
run: |
23+
pylint $(git ls-files '*.py')

.github/workflows/python-publish.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: Upload Python Package
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
deploy:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.10'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --no-cache-dir --upgrade pip
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package
29+
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)