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
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ jobs:
with:
python-version: '3.13'

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.19"

- name: Install tomlq
run: pip install tomlq
- name: Install requirements
run: pip install -r requirements-dev.txt

- name: Update __init__.py
working-directory: src/${{ matrix.directory }}
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pytest
pytest-asyncio
tox
tomlq
uv
24 changes: 18 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
[tox]
isolated_build = True

[isort]
profile = black
extend_skip =
src/dbtools-mcp-server/,
src/mysql-mcp-server/,
src/oci-pricing-mcp-server

[flake8]
; to match Black
max-line-length = 110
extend-exclude =
.venv,
src/dbtools-mcp-server,
src/mysql-mcp-server,
src/oci-pricing-mcp-server

[testenv]
deps =
Expand All @@ -15,12 +27,12 @@ setenv =

[testenv:lint]
commands =
isort -c --profile=black {posargs:{toxinidir}}
black --check {posargs:{toxinidir}}
flake8 --exclude .git,.venv,.tox,src/dbtools-mcp-server/,src/mysql-mcp-server/,src/oci-pricing-mcp-server {posargs:{toxinidir}}
isort -c {posargs:{toxinidir}}
black --force-exclude 'src/dbtools-mcp-server|mysql-mcp-server|oci-pricing-mcp-server' --check {posargs:{toxinidir}}
flake8 {posargs:{toxinidir}}

[testenv:format]
commands =
isort --profile=black {posargs:{toxinidir}}
black {posargs:{toxinidir}}
flake8 --exclude .git,.venv,.tox,src/dbtools-mcp-server/,src/mysql-mcp-server/,src/oci-pricing-mcp-server {posargs:{toxinidir}}
isort {posargs:{toxinidir}}
black --force-exclude 'src/dbtools-mcp-server|mysql-mcp-server|oci-pricing-mcp-server' {posargs:{toxinidir}}
flake8 {posargs:{toxinidir}}