Skip to content

Commit 046ffee

Browse files
authored
Initial commit
0 parents  commit 046ffee

File tree

105 files changed

+6559
-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

+6559
-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

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# this is a config file for the github action labeler
2+
3+
# Add 'root' label to any root file changes
4+
# Quotation marks are required for the leading asterisk
5+
root:
6+
- changed-files:
7+
- any-glob-to-any-file: '*'
8+
9+
# Add 'Documentation' label to any changes within 'docs' folder or any subfolders
10+
Documentation:
11+
- changed-files:
12+
- any-glob-to-any-file: docs/**
13+
14+
# Add 'Tests' label to any file changes within 'docs' folder
15+
Tests:
16+
- changed-files:
17+
- any-glob-to-any-file: tests/*
18+
19+
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
20+
ghactions:
21+
- changed-files:
22+
- any-glob-to-any-file:
23+
- .github/workflows/*
24+
- .github/*
25+
26+
# Add 'Scripts' label to any file changes within 'docs' folder
27+
Scripts:
28+
- changed-files:
29+
- any-glob-to-any-file: scripts/*
30+
31+
## Equivalent of the above mentioned configuration using another syntax
32+
Documentation:
33+
- changed-files:
34+
- any-glob-to-any-file: ['docs/*', 'guides/*']
35+
36+
# Add 'Documentation' label to any change to .md files within the entire repository
37+
Documentation:
38+
- changed-files:
39+
- any-glob-to-any-file: '**/*.md'
40+
41+
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
42+
source:
43+
- all:
44+
- changed-files:
45+
- any-glob-to-any-file: 'src/**/*'
46+
- all-globs-to-all-files: '!src/docs/*'
47+
48+
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
49+
feature:
50+
- head-branch: ['^feature', 'feature']
51+
52+
# Add 'release' label to any PR that is opened against the `main` branch
53+
release:
54+
- base-branch: 'main'
+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

0 commit comments

Comments
 (0)