Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Also recognize .pyi files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
InSyncWithFoo committed May 29, 2024
1 parent d5c69db commit 541c563
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
.gradle
build/

!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

.scripts/
!.scripts/changelog.py
!.scripts/edit_releases.py
Expand All @@ -15,6 +8,14 @@ TODO.md
.sources/
.misc/

### Generated ###
.gradle/
.kotlin/
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/**
!.idea/gradle.xml
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ For code changes, see [`CHANGELOG_CODE.md`][_-1].

## [Unreleased]

<i>This section is currently empty.</i>
### Added

* The list of recognized file extensions can now be configured
and includes `py` and `pyi` by default.
Previously, only `.py` files are recognized.


## [0.5.0] - 2024-05-27
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG_CODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ For user-facing changes, see [`CHANGELOG.md`][_-1].

## [Unreleased]

<i>This section is currently empty.</i>
### Added

* Global option "Targeted file extensions" is added. (d5c69dbb, HEAD)


## [0.5.0] - 2024-05-27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ internal class Configurations : BaseState() {
var projectExecutable by string(null)
var autoSuggestExecutable by property(true)
var workspaceFolders by enum(WorkspaceFolders.PROJECT_BASE)
var targetedFileExtensions by string(listOf("py").join())
var targetedFileExtensions by string(listOf("py", "pyi").join())
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ConfigurationFieldsTest : TestCase() {
assertEquals(true, autoSuggestExecutable)

assertEquals(WorkspaceFolders.PROJECT_BASE, workspaceFolders)
assertEquals("py", targetedFileExtensions)
assertEquals("py|pyi", targetedFileExtensions)
}
}

Expand Down

0 comments on commit 541c563

Please sign in to comment.