Skip to content

Analysis of electoral manifestos and output of it through apps.

License

Notifications You must be signed in to change notification settings

AndreCNF/polids

Folders and files

NameName
Last commit message
Last commit date
Apr 19, 2025
Mar 25, 2025
Apr 19, 2025
Apr 19, 2025
Apr 19, 2025
Jan 4, 2022
Mar 25, 2025
Jan 4, 2022
Apr 4, 2025
Apr 11, 2025
Apr 11, 2025

Repository files navigation

polids

Code style: black Streamlit App

Analysis of political data and output of it through apps.

Work in progress

This repo is currently undergoing refactoring, so as to become more easily applicable to elections in any time, in any language.

Setup

Installation

To install the package and its dependencies, use uv and:

  1. Install dependencies:

    Just the basics:

    uv sync

    Including dev dependencies:

    uv sync --all-extras --dev
  2. Install the package:

    uv pip install -e .

Setting up Pre-commit Hooks

To ensure code is formatted correctly before committing, set up pre-commit hooks:

  1. Setup pre-commit by installing the dev dependencies:

    uv sync --dev
  2. Install the hooks:

    uv run pre-commit install
  3. Run the hooks manually on all files (optional):

    uv run pre-commit run --all-files

This will use ruff to format your code automatically.