From 57f6cee9a4f7c11759408eeddb95fae001758256 Mon Sep 17 00:00:00 2001 From: Thierry Delafontaine Date: Wed, 20 Jul 2022 10:23:10 +0200 Subject: [PATCH] Updated the python header --- CHANGELOG.md | 5 +++++ README.md | 4 ++++ package.json | 2 +- snippets/python.json | 29 ++++++++++++++--------------- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a161fd..6135bdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,3 +24,8 @@ All notable changes to the "zhaw-snippets" extension will be documented in this ### 1.0.4 - Removed angle brackets from python header snippets +- Updated readme + +### 1.0.5 + +- Updated the python header, to match common usage diff --git a/README.md b/README.md index 1bc6267..c13a6da 100644 --- a/README.md +++ b/README.md @@ -91,3 +91,7 @@ Users appreciate release notes as you update your extension. - Removed angle brackets from python header snippets - Updated readme + +### 1.0.5 + +- Updated the python header, to match common usage diff --git a/package.json b/package.json index 9ca4f06..ac8a522 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "ZHAW Snippets", "description": "A collection of ZHAW related snippets", "icon": "imgs/zhaw.png", - "version": "1.0.4", + "version": "1.0.5", "publisher": "InES-HPMM", "engines": { "vscode": "^1.64.0" diff --git a/snippets/python.json b/snippets/python.json index e5a728a..16d03be 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -3,27 +3,26 @@ "prefix": "inesh", "body": [ "${1:#!/usr/bin/env python}", + "${LINE_COMMENT} ============================================================", + "${LINE_COMMENT} _____ ______ _____ ", + "${LINE_COMMENT} |_ _| | ____|/ ____|", + "${LINE_COMMENT} | | _ __ | |__ | (___ Institute of Embedded Systems", + "${LINE_COMMENT} | | | '_ \\\\| __| \\___ \\ Zurich University of", + "${LINE_COMMENT} _| |_| | | | |____ ____) | Applied Sciences", + "${LINE_COMMENT} |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland", + "${LINE_COMMENT} ============================================================", + "", "\"\"\"", "${2:}", "", - "------------------------------------------------------------------", - "-- _____ ______ _____ --", - "-- |_ _| | ____|/ ____| --", - "-- | | _ __ | |__ | (___ Institute of Embedded Systems --", - "-- | | | '_ \\\\| __| \\___ \\ Zurich University of --", - "-- _| |_| | | | |____ ____) | Applied Sciences --", - "-- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --", - "------------------------------------------------------------------", - "@author: ${3:}", - "@contact: ${4:}@zhaw.ch", - "@copyright: ${CURRENT_YEAR} ZHAW Institute of Embedded Systems", - "@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", - "", - "${5}", - "------------------------------------------------------------------", + "${3:}", "\"\"\"", "", "", + "__author__ = \"${4:} (${5:}@zhaw.ch)\"", + "__copyright__ =\"${CURRENT_YEAR} ZHAW Institute of Embedded Systems\"", + "__date__ = \"${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}\"", + "", "$0" ], "description": "The InES file header"