Skip to content

Commit

Permalink
style: fix some linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Oct 19, 2023
1 parent 5c62cee commit 2688a53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/lexer/safe_ds_lexer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Pygments lexer for Safe-DS markup."""

from ._safe_ds_lexer import SafeDsLexer

__all__ = [
Expand Down
9 changes: 4 additions & 5 deletions docs/lexer/safe_ds_lexer/_safe_ds_lexer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Pygments lexer for Safe-DS markup."""

from typing import ClassVar
from pygments.lexer import RegexLexer, words
from pygments.token import Comment, Keyword, Name, Number, Operator, String, Whitespace

Expand Down Expand Up @@ -48,16 +47,16 @@


class SafeDsLexer(RegexLexer):
name = 'safe-ds'
aliases = [
name: ClassVar[str] = 'safe-ds'
aliases: ClassVar[list[str]] = [
'Safe-DS',
'safe-ds',
'SafeDS',
'safeds',
'SDS',
'sds'
]
filenames = ['*.sdspipe', '*.sdsstub', '*.sdstest']
filenames: ClassVar[list[str]] = ['*.sdspipe', '*.sdsstub', '*.sdstest']

tokens = {
'root': [
Expand Down

0 comments on commit 2688a53

Please sign in to comment.