Establish and verify a professional Python project for continuous intelligence.
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.
No input dataset is required for this project.
Later modules introduce data files, analytical processing, and generated results.
The project uses a simple Python pipeline to verify that the environment and project structure work correctly.
Explore these important project components:
- pyproject.toml - project identity, dependencies, and tool configuration.
- src/cintel/pipeline.py - executable Python pipeline and logging.
- tests/ - automated tests.
- .github/workflows/ - automated testing and documentation deployment.
- docs/ - project documentation.
- zensical.toml - project documentation configuration must have correct links.
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.pipelineSuccessful 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.
Run the automated tests:
uv run pytestThe 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.
This project includes continuous integration and continuous deployment (CI/CD) to check project files and publish the docs. GitHub Actions include:
Follow the Professional Python Workflow Guide for detailed instructions and troubleshooting.
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 auditSet 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-filesRun 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 buildAfter making useful changes, save your work to GitHub.
git add -A
git commit -m "describe your changes in quotes"
git push -u origin main- Use the UP ARROW and DOWN ARROW in the terminal to scroll through past commands.
- Use
CTRL+fto find (and replace) text within a file.
This project uses professional Python tools to support development, testing, documentation, and code quality.
- uv - Python environments and dependencies.
- Ruff - Python linting and formatting, configured in .ruff.toml.
- ty - Python type checking.
- pytest - automated Python testing, configured in .pytest.toml.
- prek - Git hooks and automated checks, configured in prek.toml.
- Zensical - project documentation, configured in zensical.toml.