Skip to content

Commit

Permalink
Merge pull request #289 from koxudaxi/fix_deleting_ignore_files
Browse files Browse the repository at this point in the history
Fixed to correctly recognize empty list strings
  • Loading branch information
koxudaxi committed Oct 12, 2023
2 parents 670940f + 95bf755 commit 9d608bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## [Unreleased]
- Fixed to correctly recognize empty list strings [[#289](https://github.com/koxudaxi/ruff-pycharm-plugin/pull/289)]
- Support 2023.3 EAP [[#284](https://github.com/koxudaxi/ruff-pycharm-plugin/pull/284)]

## [0.0.23] - 2023-10-03
Expand Down
2 changes: 1 addition & 1 deletion src/com/koxudaxi/ruff/Ruff.kt
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ fun checkFixResult(sourceFile: SourceFile, fixResult: String?): String? {
val noFixResult = runRuff(sourceFile, sourceFile.project.NO_FIX_ARGS) ?: return null

// check the file is excluded
if (noFixResult == "[]\n") return null
if (noFixResult.trim() == "[]") return null
return fixResult
}

Expand Down

0 comments on commit 9d608bf

Please sign in to comment.