Skip to content

Commit 83183d3

Browse files
tbitcsoz-agent
andcommitted
fix: ruff format on agents module files
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 4525dfa commit 83183d3

73 files changed

Lines changed: 1631 additions & 16 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# EditorConfig — https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 4
11+
12+
[*.py]
13+
indent_size = 4
14+
max_line_length = 100
15+
16+
[*.{yml,yaml}]
17+
indent_size = 2
18+
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
22+
[Makefile]
23+
indent_style = tab
24+
25+
[*.{cmd,bat}]
26+
end_of_line = crlf
27+
28+
[*.{ps1,psm1}]
29+
end_of_line = crlf
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Auto-detect text files and normalize line endings
2+
* text=auto
3+
4+
# Common text files
5+
*.md text eol=lf
6+
*.txt text eol=lf
7+
*.yml text eol=lf
8+
*.yaml text eol=lf
9+
*.json text eol=lf
10+
*.toml text eol=lf
11+
*.cfg text eol=lf
12+
*.ini text eol=lf
13+
*.xml text eol=lf
14+
.gitignore text eol=lf
15+
.gitattributes text eol=lf
16+
.editorconfig text eol=lf
17+
18+
# Shell scripts
19+
*.sh text eol=lf
20+
*.bash text eol=lf
21+
*.cmd text eol=crlf
22+
*.bat text eol=crlf
23+
*.ps1 text eol=crlf
24+
*.psm1 text eol=crlf
25+
26+
# Python
27+
*.py text eol=lf
28+
*.pyi text eol=lf
29+
*.pyx text eol=lf
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug in forge-cli
4+
title: "bug: "
5+
labels: bug
6+
---
7+
8+
## Description
9+
10+
<!-- Clear description of the bug -->
11+
12+
## Steps to Reproduce
13+
14+
1.
15+
2.
16+
3.
17+
18+
## Expected Behavior
19+
20+
<!-- What should happen -->
21+
22+
## Actual Behavior
23+
24+
<!-- What actually happens -->
25+
26+
## Environment
27+
28+
- OS:
29+
- Python version:
30+
- forge-cli version:
31+
32+
## Additional Context
33+
34+
<!-- Logs, screenshots, or other relevant information -->
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an enhancement for forge-cli
4+
title: "feat: "
5+
labels: enhancement
6+
---
7+
8+
## Summary
9+
10+
<!-- Brief description of the feature -->
11+
12+
## Motivation
13+
14+
<!-- Why is this needed? What problem does it solve? -->
15+
16+
## Proposed Solution
17+
18+
<!-- How should this work? -->
19+
20+
## Alternatives Considered
21+
22+
<!-- Other approaches you've thought about -->
23+
24+
## Additional Context
25+
26+
<!-- Mockups, references, or related issues -->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Description
2+
3+
<!-- Brief description of what this PR does -->
4+
5+
Closes #
6+
7+
## Changes
8+
9+
-
10+
11+
## Governance Checklist
12+
13+
- [ ] Read `AGENTS.md` and followed the workflow
14+
- [ ] Changes proposed in `LEDGER.md` before implementation
15+
- [ ] `docs/REQUIREMENTS.md` updated (if new/changed requirements)
16+
- [ ] `docs/TEST_SPEC.md` updated (if new/changed tests)
17+
- [ ] Lint passes: `ruff check`
18+
- [ ] Type check passes: `mypy`
19+
- [ ] Tests pass: `pytest`
20+
- [ ] Security scan passes: `pip-audit`
21+
- [ ] `LEDGER.md` entry recorded
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 5
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ci-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
lint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-python@v6
22+
with:
23+
python-version: "3.12"
24+
cache: pip
25+
- run: pip install -e ".[dev]"
26+
- run: ruff check
27+
- run: ruff format --check .
28+
29+
typecheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
- uses: actions/setup-python@v6
34+
with:
35+
python-version: "3.12"
36+
cache: pip
37+
- run: pip install -e ".[dev]"
38+
- run: mypy src/forge_cli/
39+
40+
test:
41+
needs: [lint, typecheck]
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
os: [ubuntu-latest, windows-latest, macos-latest]
46+
python-version: ["3.10", "3.12", "3.13"]
47+
runs-on: ${{ matrix.os }}
48+
steps:
49+
- uses: actions/checkout@v6
50+
- uses: actions/setup-python@v6
51+
with:
52+
python-version: ${{ matrix.python-version }}
53+
cache: pip
54+
- run: pip install -e ".[dev]"
55+
- run: pytest --cov=forge_cli --cov-report=term-missing
56+
57+
security:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v6
61+
- uses: actions/setup-python@v6
62+
with:
63+
python-version: "3.12"
64+
cache: pip
65+
- run: pip install -e .
66+
- run: pip install pip-audit
67+
- run: pip-audit
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Dev Release
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
dev-build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-python@v6
20+
with:
21+
python-version: "3.12"
22+
cache: pip
23+
24+
- name: Install build tools
25+
run: pip install build
26+
27+
- name: Set dev version
28+
run: |
29+
BASE=$(grep 'version = ' pyproject.toml | head -1 | sed 's/version = "\(.*\)"//')
30+
MAJOR=$(echo $BASE | cut -d. -f1)
31+
MINOR=$(echo $BASE | cut -d. -f2)
32+
PATCH=$(echo $BASE | cut -d. -f3)
33+
NP=$((PATCH + 1))
34+
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~100)
35+
NC=$(git rev-list --count HEAD ^$TAG 2>/dev/null || echo 0)
36+
DV="${MAJOR}.${MINOR}.${NP}.dev${NC}"
37+
echo "DEV_VERSION=${DV}" >> $GITHUB_ENV
38+
sed -i "s/version = "${BASE}"/version = "${DV}"/" pyproject.toml
39+
echo "Building version: ${DV}"
40+
41+
- run: python -m build
42+
43+
- name: Upload build artifacts
44+
uses: actions/upload-artifact@v7
45+
with:
46+
name: dev-dist
47+
path: dist/
48+
49+
pypi-dev-publish:
50+
needs: dev-build
51+
runs-on: ubuntu-latest
52+
environment: pypi
53+
permissions:
54+
id-token: write
55+
continue-on-error: true
56+
steps:
57+
- uses: actions/download-artifact@v8
58+
with:
59+
name: dev-dist
60+
path: dist/
61+
- name: Publish dev release to PyPI
62+
uses: pypa/gh-action-pypi-publish@release/v1
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
if: github.ref_type == 'tag'
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-python@v6
17+
with:
18+
python-version: "3.12"
19+
cache: pip
20+
- run: pip install -e ".[dev]"
21+
- run: ruff check
22+
- run: mypy
23+
- run: pytest
24+
25+
build:
26+
needs: test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
- uses: actions/setup-python@v6
31+
with:
32+
python-version: "3.12"
33+
cache: pip
34+
- run: pip install build
35+
- run: python -m build
36+
- name: Upload build artifacts
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: dist
40+
path: dist/
41+
42+
github-release:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v6
47+
- uses: actions/download-artifact@v8
48+
with:
49+
name: dist
50+
path: dist/
51+
- name: Create GitHub Release
52+
env:
53+
GH_TOKEN: ${{ github.token }}
54+
run: |
55+
gh release create "${{ github.ref_name }}" dist/* \
56+
--title "${{ github.ref_name }}" \
57+
--generate-notes
58+
59+
pypi-publish:
60+
needs: build
61+
runs-on: ubuntu-latest
62+
environment: pypi
63+
permissions:
64+
id-token: write
65+
steps:
66+
- uses: actions/download-artifact@v8
67+
with:
68+
name: dist
69+
path: dist/
70+
- name: Publish to PyPI
71+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)