Skip to content

Commit

Permalink
Add support for .pyi files
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeGak committed Sep 19, 2023
1 parent cfa80de commit 9fe17bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Renamed CLI `--ci` flag to `--check`.
- Removed Unicode interpuct from CLI output.
- Removed colors from CLI output when CI envvar is set.
- Added support for `.pyi` files.

## v1.1.1

Expand Down
3 changes: 3 additions & 0 deletions src/unbeheader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
'py': SupportedFileType(
re.compile(r'((^#|[\r\n]#).*)*'),
CommentSkeleton(comment_start='#', comment_middle='#', comment_end='')),
'pyi': SupportedFileType(
re.compile(r'((^#|[\r\n]#).*)*'),
CommentSkeleton(comment_start='#', comment_middle='#', comment_end='')),
'wsgi': SupportedFileType(
re.compile(r'((^#|[\r\n]#).*)*'),
CommentSkeleton(comment_start='#', comment_middle='#', comment_end='')),
Expand Down

0 comments on commit 9fe17bd

Please sign in to comment.