Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
lint:
runs-on: ubuntu-latest
name: Lint ${{ matrix.python-version }}
if: false
strategy:
fail-fast: false
matrix:
Expand All @@ -26,7 +25,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --group testing
run: uv sync --group linting

- name: Run formatting
run: uv run ruff format --diff
Expand All @@ -46,15 +45,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2

- name: Install dependencies
run: poetry install

- run: mkdir coverage
run: uv sync --group testing

- name: Run tests
run: make test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ lint: .uv
uv run ruff format --check $(sources)

.PHONY: test ## Run all tests
test:
pytest --durations=10
test: .uv
uv run pytest --durations=10
2 changes: 1 addition & 1 deletion coagent/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def main():
args = parser.parse_args()

if not args.header:
parser.error(f"At least one header (-H/--header) is required.")
parser.error("At least one header (-H/--header) is required.")

if args.chat:
args.stream = True
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ exclude = [".cache"]

[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
line-length = 120
extend-exclude = ['coagent/agents/aswarm']
exclude = ['coagent/agents/aswarm']

[tool.ruff.format]
exclude = ['coagent/agents/aswarm']
Expand All @@ -58,6 +57,7 @@ select = [
]
ignore = [
'B007',
'B008',
'B011',
'B012',
'B028',
Expand Down
Loading
Loading