Files
context-continuity/venv.old-py38/lib/python3.9/site-packages/pygments/styles/inkpot.py
T
Master 943acbc573 feat: referentiel projets dynamique + validation nommage by design
Durcit la convention de nommage des projets (dérive constatée : 'Sliding
Automation', 'code_versioning'... au lieu des formes canoniques).

- trilium_api.py : projets_canoniques() lit le référentiel = valeurs du label
  projet sur les notes de type=projet (source unique, pas de constante en dur).
  Note-projet CodeVersioning créée (manquait).
- mcp_server.py : _valider_projet() branché dans les 6 tools de création
  (add_decision/history/backlog, new_conversation, create_entite, add_skill).
  Refuse un projet non canonique (suggestion si faute) ou inconnu (renvoi au
  processus de création de projet). Ne verrouille pas si référentiel illisible.
- lint_audit.py : VAL-nommage aligné sur le référentiel (attrape casse, espace
  ET snake_case ; l'ancien 'contient un espace' ratait code_versioning).
- Données : 79 notes ré-étiquetées vers les 3 formes canoniques.

Quality by design : l'erreur de nommage devient impossible à l'écriture, le
Lint n'est plus que le filet de sécurité.
2026-07-17 14:59:33 +02:00

73 lines
2.4 KiB
Python

"""
pygments.styles.inkpot
~~~~~~~~~~~~~~~~~~~~~~
A highlighting style for Pygments, inspired by the Inkpot theme for VIM.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Text, Other, Keyword, Name, Comment, String, \
Error, Number, Operator, Generic, Whitespace, Punctuation
__all__ = ['InkPotStyle']
class InkPotStyle(Style):
name = 'inkpot'
background_color = "#1e1e27"
styles = {
Text: "#cfbfad",
Other: "#cfbfad",
Whitespace: "#434357",
Comment: "#cd8b00",
Comment.Preproc: "#409090",
Comment.PreprocFile: "bg:#404040 #ffcd8b",
Comment.Special: "#808bed",
Keyword: "#808bed",
Keyword.Pseudo: "nobold",
Keyword.Type: "#ff8bff",
Operator: "#666666",
Punctuation: "#cfbfad",
Name: "#cfbfad",
Name.Attribute: "#cfbfad",
Name.Builtin.Pseudo: '#ffff00',
Name.Builtin: "#808bed",
Name.Class: "#ff8bff",
Name.Constant: "#409090",
Name.Decorator: "#409090",
Name.Exception: "#ff0000",
Name.Function: "#c080d0",
Name.Label: "#808bed",
Name.Namespace: "#ff0000",
Name.Variable: "#cfbfad",
String: "bg:#404040 #ffcd8b",
String.Doc: "#808bed",
Number: "#f0ad6d",
Generic.Heading: "bold #000080",
Generic.Subheading: "bold #800080",
Generic.Deleted: "#A00000",
Generic.Inserted: "#00A000",
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #000080",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Error: "bg:#6e2e2e #ffffff"
}