This file defines the canonical coding directives for this repository.
If other instruction files exist (Copilot, IDE rules, contributor docs) and conflict with this file, follow this file and treat the others as stale.
- Primary language: Python
| #!/usr/bin/env bash | |
| # Script to export all tables (other than "views") from a MySQL database to TSV files. | |
| # You'll be prompted for the password for each export. | |
| # WILL overwrite existing files in the output directory. | |
| set -euo pipefail # ensures pipeline fails if any command in the pipeline fails | |
| # user-configurable variables --------------------------------------- | |
| MYSQL_BIN="/PATH/TO/mysql" |
| #!/bin/bash | |
| ## assumes `uv` is installed and available in PATH | |
| ## Usage: `bash ./CALLER.sh`, which sets vars and then runs `source /path/to/CALLEE.sh` | |
| ## helper code ------------------------------------------------------ | |
| ## function for calls below | |
| function reset_group_and_permissions () { |
This file defines the canonical coding directives for this repository.
If other instruction files exist (Copilot, IDE rules, contributor docs) and conflict with this file, follow this file and treat the others as stale.
| # /// script | |
| # requires-python = "==3.12.*" | |
| # dependencies = [ | |
| # "spacy~=3.8.0", | |
| # "en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl" | |
| # ] | |
| # /// | |
| import argparse | |
| from collections import Counter |
| # /// script | |
| # requires-python = "==3.12.*" | |
| # dependencies = [ | |
| # "spacy~=3.8.0", | |
| # "en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl" | |
| # ] | |
| # /// | |
| from collections import Counter |
| print( 'Hello World' ) |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Thumbnail Loader — Ordered Queue & Viewer-Aware Queue</title> | |
| <style> | |
| :root { --gap: 10px; --bg: #0b1020; --card: #11172a; --ink: #e8ecff; --muted: #a6b0d9; } | |
| html, body { margin:0; padding:0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; } | |
| header { position: sticky; top: 0; z-index: 5; background: linear-gradient(180deg, rgba(11,16,32,.96), rgba(11,16,32,.8)); border-bottom: 1px solid #223; } |
| # /// script | |
| # requires-python = "==3.12.*" | |
| # dependencies = [ | |
| # "httpx" | |
| # ] | |
| # /// | |
| """ | |
| Computes total byte-size for a BDR collection and returns the size in both bytes and human-readable form. |
| ## settings ## | |
| line-length = 125 | |
| indent-width = 4 | |
| target-version = "py38" | |
| [format] | |
| docstring-code-format = false | |
| indent-style = "space" | |
| line-ending = "auto" | |
| quote-style = "single" |
| [project] | |
| name = "bdr-student-uploader-hub-project" | |
| version = "0.0.0" | |
| description = "Allows staff to easily and quickly create and configure webapp-uploader for students." | |
| readme = "https://github.com/Brown-University-Library/bdr_student_uploader_hub_project/blob/main/README.md" | |
| requires-python = ">=3.12,<3.13" | |
| dependencies = [ | |
| "beautifulsoup4~=4.13.0", | |
| "Django~=5.2.0", | |
| "httpx~=0.28.0", |