flake8-diff-only 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
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.
- flake8_diff_only/checker.py +2 -2
- {flake8_diff_only-0.1.1.dist-info → flake8_diff_only-0.1.3.dist-info}/METADATA +1 -1
- flake8_diff_only-0.1.3.dist-info/RECORD +7 -0
- flake8_diff_only-0.1.3.dist-info/entry_points.txt +3 -0
- flake8_diff_only-0.1.1.dist-info/RECORD +0 -7
- flake8_diff_only-0.1.1.dist-info/entry_points.txt +0 -3
- {flake8_diff_only-0.1.1.dist-info → flake8_diff_only-0.1.3.dist-info}/LICENSE.md +0 -0
- {flake8_diff_only-0.1.1.dist-info → flake8_diff_only-0.1.3.dist-info}/WHEEL +0 -0
flake8_diff_only/checker.py
CHANGED
@@ -10,7 +10,7 @@ LineNumber = int
|
|
10
10
|
|
11
11
|
class Flake8DiffOnlyChecker:
|
12
12
|
name = "flake8-diff-only"
|
13
|
-
version = "0.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
|
@@ -0,0 +1,7 @@
|
|
1
|
+
flake8_diff_only/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
flake8_diff_only/checker.py,sha256=d4FpxE7vbsabF4oxvz1jigo5ae-oi_s1O7b9Ba6BDSs,3780
|
3
|
+
flake8_diff_only-0.1.3.dist-info/LICENSE.md,sha256=sBI8-TYatRBlqWblXpDP6vKYkA2tKMdxstXkz999qJU,1060
|
4
|
+
flake8_diff_only-0.1.3.dist-info/METADATA,sha256=ubiEwAPpz0wVCFwgYAUK6DLeUW0aOwCzK69C8jUqUhM,1518
|
5
|
+
flake8_diff_only-0.1.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
6
|
+
flake8_diff_only-0.1.3.dist-info/entry_points.txt,sha256=CXw_iI0JlWvRjMglpKBJ04ooVA2r_mSA4cMi9QxV3Ts,71
|
7
|
+
flake8_diff_only-0.1.3.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
flake8_diff_only/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
flake8_diff_only/checker.py,sha256=wWwQCRkk_6NhF0tvowynAbn4h2vLKSljU1_sXWktC4g,3768
|
3
|
-
flake8_diff_only-0.1.1.dist-info/LICENSE.md,sha256=sBI8-TYatRBlqWblXpDP6vKYkA2tKMdxstXkz999qJU,1060
|
4
|
-
flake8_diff_only-0.1.1.dist-info/METADATA,sha256=lkeEZ1KuGTILrjqG79yW9zg3Ih0OP0yMMQfIwu093lk,1518
|
5
|
-
flake8_diff_only-0.1.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
6
|
-
flake8_diff_only-0.1.1.dist-info/entry_points.txt,sha256=l7MFGcU7okKDCm2Ta8x8-xGb5kTvPfPM8sUE0Z8v_t8,72
|
7
|
-
flake8_diff_only-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|