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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"

- name: Run ruff
run: python -m ruff check src/ tests/

- name: Run ruff format check
run: python -m ruff format --check src/ tests/

- name: Run pyright
run: python -m pyright

- name: Run pytest with coverage
run: python -m pytest tests/ -x -vv --cov=decaf --cov-report=xml --cov-report=term-missing

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

# decaf

[![CI](https://github.com/vjt/decaf/actions/workflows/ci.yml/badge.svg)](https://github.com/vjt/decaf/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/vjt/decaf/branch/master/graph/badge.svg)](https://codecov.io/gh/vjt/decaf)
[![GitHub Release](https://img.shields.io/github/v/release/vjt/decaf?include_prereleases&sort=semver)](https://github.com/vjt/decaf/releases)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

**De-CAF** — Generatore di report fiscale per investimenti esteri. Niente commercialista.

<p align="center">
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ description = "De-CAF: Italian tax report generator for foreign investments. Mod
readme = "README.md"
license = "MIT"
authors = [{ name = "Marcello Barnaba", email = "vjt@openssl.it" }]
requires-python = ">=3.12"
requires-python = ">=3.13"
keywords = ["italian-tax", "ivafe", "quadro-rw", "quadro-rt", "quadro-rl", "modello-redditi", "ibkr", "schwab", "ecb", "forex", "fifo"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
Expand All @@ -34,6 +33,7 @@ dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-timeout>=2.3",
"pytest-cov>=5.0",
"ruff>=0.8",
"pyright>=1.1",
"reportlab>=4.0", # used by scripts/gen_schwab_pdfs.py for synthetic fixtures
Expand Down Expand Up @@ -61,7 +61,7 @@ asyncio_mode = "auto"
timeout = 10

[tool.ruff]
target-version = "py312"
target-version = "py313"
line-length = 100

[tool.ruff.lint]
Expand All @@ -84,7 +84,7 @@ ignore = [
known-first-party = ["decaf"]

[tool.pyright]
pythonVersion = "3.12"
pythonVersion = "3.13"
typeCheckingMode = "standard"
include = ["src"]
venvPath = "."
Expand Down
Loading
Loading