Skip to content

Repository files navigation

cintel-01-getting-started

Python 3.14 CI Documentation

uv managed ty type checked Zensical docs MIT

Establish and verify a professional Python project for continuous intelligence.

Project Overview

Author: Denise Case

Date: 2026 October

First project in the Continuous Intelligence course.

The goal is to establish a working Python environment, explore a professional project structure, run a Python pipeline, and verify the project works.

The project is configured in pyproject.toml.

Data

No input dataset is required for this project.

Later modules introduce data files, analytical processing, and generated results.

Approach

The project uses a simple Python pipeline to verify that the environment and project structure work correctly.

Explore these important project components:

Run the Project

Follow the Professional Python Workflow Guide to set up your machine and project environment.

From a VS Code terminal in the project root:

uv run python -m cintel.pipeline

Results

Successful execution produces a terminal message:

========================
Pipeline executed successfully!
========================

A project.log file is created in the project root.

This confirms that the Python pipeline executes and the logging system works.

Verification

Run the automated tests:

uv run pytest

Project Documentation

The hosted documentation site is published using Zensical and GitHub Pages.

The documentation site is used to present the project report, covering such sections as data, methods, results, visualizations, interpretation, and conclusions.

CI/CD and GitHub Actions

This project includes continuous integration and continuous deployment (CI/CD) to check project files and publish the docs. GitHub Actions include:

Developer Reference

Follow the Professional Python Workflow Guide for detailed instructions and troubleshooting.

Initialize and Update the Python Environment

With the project open in VS Code, open a VS Code terminal. Paste each command and hit Enter or Return after to run it.

uvx pup-clean --delete
uv self update
uv python pin 3.14
uv python install
uv lock --upgrade
uv sync
uv audit

Set Up and Run Git Hooks

Set up and run the git hooks to perform basic checks automatically before any changes get pushed to GitHub.

In the VS Code terminal, paste each command and hit Enter or Return after to run it.

uvx prek install --force
uvx prek update --freeze --cooldown-days 7

git add -A
uvx prek run --all-files
# repeat if changes were made
uvx prek run --all-files

Run Common Chores

Run linters, formatters, type checks, tests, and build the documentation.

uv run ruff check . --fix
uv run ruff format .

uv run ty check
uv run python -m pytest
uv run python -m zensical build

Git add-commit-push to GitHub

After making useful changes, save your work to GitHub.

git add -A
git commit -m "describe your changes in quotes"
git push -u origin main

Developer Notes

  • Use the UP ARROW and DOWN ARROW in the terminal to scroll through past commands.
  • Use CTRL+f to find (and replace) text within a file.

Developer Tools

This project uses professional Python tools to support development, testing, documentation, and code quality.

Links

Releases

Used by

Contributors

Languages