Files
context-continuity/venv.old-py38/lib/python3.9/site-packages/pygments/styles/onedark.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

74 lines
2.1 KiB
Python

"""
pygments.styles.onedark
~~~~~~~~~~~~~~~~~~~~~~~
One Dark Theme for Pygments by Tobias Zoghaib (https://github.com/TobiZog)
Inspired by one-dark-ui for the code editor Atom
(https://atom.io/themes/one-dark-ui).
: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 Comment, Keyword, Name, Number, Operator, \
Punctuation, String, Token, Generic
__all__ = ['OneDarkStyle']
class OneDarkStyle(Style):
"""
Theme inspired by One Dark Pro for Atom.
.. versionadded:: 2.11
"""
name = 'one-dark'
background_color = '#282C34'
styles = {
Token: '#ABB2BF',
Punctuation: '#ABB2BF',
Punctuation.Marker: '#ABB2BF',
Keyword: '#C678DD',
Keyword.Constant: '#E5C07B',
Keyword.Declaration: '#C678DD',
Keyword.Namespace: '#C678DD',
Keyword.Reserved: '#C678DD',
Keyword.Type: '#E5C07B',
Name: '#E06C75',
Name.Attribute: '#E06C75',
Name.Builtin: '#E5C07B',
Name.Class: '#E5C07B',
Name.Function: 'bold #61AFEF',
Name.Function.Magic: 'bold #56B6C2',
Name.Other: '#E06C75',
Name.Tag: '#E06C75',
Name.Decorator: '#61AFEF',
Name.Variable.Class: '',
String: '#98C379',
Number: '#D19A66',
Operator: '#56B6C2',
Comment: '#7F848E',
Generic.Heading: 'bold #ABB2BF',
Generic.Subheading: 'bold #ABB2BF',
Generic.Deleted: '#E06C75',
Generic.Inserted: '#98C379',
Generic.Error: '#E06C75',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.Output: '#E06C75',
Generic.Traceback: '#E06C75',
}