Contributing
Development Setup
Clone the repository:
git clone https://github.com/ahnazary/Finance.git
cd Finance
Install dependencies:
pip install -r finance/requirements.txt
pip install -r requirements_sphinx.txt
Set up environment variables:
export PG_NEON_FINANCE_URL="your-connection-string"
Code Style
Formatter: Black (line length 88)
Import sorting: isort
Linting: pylint (minimum score: 1)
Run formatting:
black .
isort .
Building Docs
cd docs
sphinx-build . build
# Open build/index.html in browser
Adding a New Financial Table
Add the table migration in Alembic (
database-version-controlrepo)Add the stockdex method mapping to
FINANCIAL_TABLESinconfig.pyThe
FinancialDataETLclass will automatically support itAdd a new workflow job in
financial_data_etl.yaml