Skip to content

Commit 2789891

Browse files
authored
Merge pull request #21 from FontysVenlo/comments
fix: add YAML comment styles and update version to 1.1.2
2 parents 9ea1860 + fbce519 commit 2789891

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.9", "3.10", "3.11", "3.12"]
18+
python-version: ["3.10", "3.11", "3.12"]
1919
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
2020
runs-on: ${{ matrix.os }}
2121
steps:
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install Poetry
28-
uses: snok/install-poetry@v1
28+
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a
2929
with:
3030
virtualenvs-create: true
3131
virtualenvs-in-project: true

codestripper/utils/comments.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ class Comment:
2222
".r": Comment("#"),
2323
".py": Comment("#"),
2424
".ps1": Comment("#"),
25-
".rb": Comment("#")
25+
".rb": Comment("#"),
26+
".yml": Comment("#"),
27+
".yaml": Comment("#"),
28+
"": Comment("#"), # Default comment style for unknown file types
2629
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codestripper"
3-
version = "1.1.1"
3+
version = "1.1.2"
44
description = "CodeStripper used to strip code from assignments"
55
authors = ["Bonajo <m.bonajo@fontys.nl>"]
66
maintainers = ["Bonajo <m.bonajo@fontys.nl>"]

0 commit comments

Comments
 (0)