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 / copilot-instructions.md
Created October 5, 2024 03:58
My current default Github Copilot Instructions for Python Instructions

For Python Based Projects

  • Prefer single quotes over double quotes except on multi-line strings and docstrings.
  • Prefer powershell for scripts where necessary.
  • For tests use pytest.
  • For tests use the arrange, act, assert pattern with comments.
  • For documentation use markdown.
  • Generate docstrings for all functions and classes and at the top of all code files.
  • I prefer my code to be in the src directory.
  • I prefer my tests to be in the tests directory.
  • I prefer my scripts to be in the scripts directory.
@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")));