flake8-diff-only 0.1.1__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: flake8-diff-only
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Flake8 plugin to show errors only on changed lines
5
5
  License: MIT
6
6
  Keywords: flake8,plugin,quotes,code quality
@@ -10,7 +10,7 @@ LineNumber = int
10
10
 
11
11
  class Flake8DiffOnlyChecker:
12
12
  name = "flake8-diff-only"
13
- version = "0.1.1"
13
+ version = "0.1.3"
14
14
 
15
15
  _instance: ClassVar[Flake8DiffOnlyChecker | None] = None
16
16
  _diff_lines: ClassVar[dict[FilePath, set[LineNumber]]]
@@ -55,7 +55,7 @@ class Flake8DiffOnlyChecker:
55
55
  Получаем список изменённых строк из git diff.
56
56
  Возвращает словарь: { 'filename': set(linenos) }
57
57
  """
58
- diff_cmd = ["git", "diff", "--unified=0", "--no-color"]
58
+ diff_cmd = ["git", "diff", "--unified=0", "--no-color", "--cached"]
59
59
  try:
60
60
  output = subprocess.check_output(
61
61
  diff_cmd, stderr=subprocess.DEVNULL
@@ -4,7 +4,7 @@ requires = [ "poetry-core>=2.0" ]
4
4
 
5
5
  [project]
6
6
  name = "flake8-diff-only"
7
- version = "0.1.1"
7
+ version = "0.1.3"
8
8
  description = "Flake8 plugin to show errors only on changed lines"
9
9
  readme = "README.md"
10
10
 
@@ -40,7 +40,7 @@ Repository = "https://github.com/emilkholod/flake8-diff-only"
40
40
  Issues = "https://github.com/emilkholod/flake8-diff-only/issues"
41
41
 
42
42
  [project.entry-points."flake8.extension"]
43
- FDOC = "flake8_diff_only.checker:Flake8DiffOnlyChecker"
43
+ FDO = "flake8_diff_only.checker:Flake8DiffOnlyChecker"
44
44
 
45
45
  [tool.isort]
46
46
  profile = "black"