5be68a5b04
- Remove requirements.txt and requirements-dev.txt (duplicates pyproject.toml) - Update Dockerfile to use 'pip install .' instead of requirements.txt - Update README.md and GitHub workflows to use 'pip install -e .[dev]' - Fix test_get_valuation_comparables: check for 'deal_date' instead of non-existent 'asset_room_num' (rooms field is optional and excluded when None due to exclude_none=True) - Fix fastmcp version constraint in pyproject.toml (>=2.13.0,<3.0.0) - Add vcrpy to dev dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
52 lines
1003 B
YAML
52 lines
1003 B
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
code-quality:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ruff
|
|
|
|
- name: Run Ruff formatter check
|
|
run: ruff format --check .
|
|
|
|
- name: Run Ruff linter
|
|
run: ruff check .
|
|
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e .[dev]
|
|
|
|
- name: Run tests
|
|
run: pytest tests/ -m "not api_health" -q
|