Skip to content

Instantly share code, notes, and snippets.

View cantis's full-sized avatar

Evan Young cantis

  • Winnipeg, MB
View GitHub Profile
@cantis
cantis / ruff.toml
Last active October 27, 2025 03:28
ruff.toml default config
#:schema = "https://json.schemastore.org/ruff.json"\
line-length = 120
# Bigger than the recomendation in pep 8 but they are focused on having multiple
# windows open side by side, which I rarely do (might matter for PR's?)
[lint]
select = ["E", "F", "I"]
# E = Pycodestyle errors
# F = Pyflakes rules (unused imports, unused-variables etc.)
@cantis
cantis / copilot-instructions.md
Last active August 29, 2025 13:58
My current default Github Copilot Instructions for Python Instructions

My Co-Pilot Instructions

Note: these are poroject specific and were generated by running the CHAT: Generate Workplace Instructions file from the command pallet.

Project Overview

Flask-based time tracking application with Bootstrap frontend, SQLite database, and Docker containerization. Uses Blueprint architecture with three main modules: home (entry management), reports (analytics), and admin (settings).

Architecture Patterns

  • Flask application factory in app/app.py with Blueprint registration
  • Time storage format: Mixed handling of both integer minutes-past-midnight and "HH:MM" strings (see parse_time_to_minutes() in reports.py)
@cantis
cantis / CodespacesDevelopment.md
Last active April 22, 2023 18:12
Notes on Github Codespaces Development
@cantis
cantis / CSharpAPINotes.md
Created January 25, 2023 17:05
Notes on writing C# APIs

API Documentation: Generation from XML Comments

Note: This applies to .net 6 LTS

  1. Turn on XML Documentation generation in the project in Properties-Build-Output select Documentation File
  2. Modify the AddSwaggerGen line in the program.cs file
builder.Services.AddSwaggerGen( c =>
    c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory,
        $"{Assembly.GetExecutingAssembly().GetName().Name}.xml")));