flake8-diff-only 0.1.5__tar.gz → 0.1.6__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.5
3
+ Version: 0.1.6
4
4
  Summary: Flake8 plugin to show errors only on changed lines
5
5
  License: MIT
6
6
  Keywords: flake8,plugin,quotes,code quality
@@ -30,11 +30,22 @@ Description-Content-Type: text/markdown
30
30
  # Project: flake8-diff-only
31
31
 
32
32
  ## Description
33
- This project provides a plugin for Flake8 that checks only the modified lines of files for Flake8 violations.
33
+
34
+ This project provides a plugin for **Flake8** that checks only the modified lines of files for style violations.
35
+
36
+ > ⚠️ **Please note:**
37
+ >
38
+ > * The [current implementation of `--diff` is fundamentally flawed by design](https://github.com/pycqa/flake8/issues/1389).
39
+ > * The [`--diff` option was deprecated in Flake8 5.0.0](https://flake8.pycqa.org/en/latest/release-notes/5.0.0.html#deprecations).
40
+ > * The [`--diff` option was removed entirely in Flake8 6.0.0](https://flake8.pycqa.org/en/latest/release-notes/6.0.0.html#backwards-incompatible-changes).
41
+
42
+ This project replicates that deprecated functionality but as a plugin, and naturally inherits the same limitations.
43
+ However, it has distinct advantages — particularly in **legacy codebases**, where running full Flake8 checks may produce excessive noise.
44
+ That's why I decided to recreate this feature in the form of a plugin.
34
45
 
35
46
  ## Usage
36
47
 
37
- To install the plugin, use the following command:
48
+ To install the plugin, run:
38
49
 
39
50
  ```bash
40
51
  pip install flake8-diff-only
@@ -0,0 +1,23 @@
1
+ # Project: flake8-diff-only
2
+
3
+ ## Description
4
+
5
+ This project provides a plugin for **Flake8** that checks only the modified lines of files for style violations.
6
+
7
+ > ⚠️ **Please note:**
8
+ >
9
+ > * The [current implementation of `--diff` is fundamentally flawed by design](https://github.com/pycqa/flake8/issues/1389).
10
+ > * The [`--diff` option was deprecated in Flake8 5.0.0](https://flake8.pycqa.org/en/latest/release-notes/5.0.0.html#deprecations).
11
+ > * The [`--diff` option was removed entirely in Flake8 6.0.0](https://flake8.pycqa.org/en/latest/release-notes/6.0.0.html#backwards-incompatible-changes).
12
+
13
+ This project replicates that deprecated functionality but as a plugin, and naturally inherits the same limitations.
14
+ However, it has distinct advantages — particularly in **legacy codebases**, where running full Flake8 checks may produce excessive noise.
15
+ That's why I decided to recreate this feature in the form of a plugin.
16
+
17
+ ## Usage
18
+
19
+ To install the plugin, run:
20
+
21
+ ```bash
22
+ pip install flake8-diff-only
23
+ ```
@@ -3,7 +3,7 @@ import ast
3
3
 
4
4
  class Flake8DiffOnlyChecker:
5
5
  name = "flake8-diff-only"
6
- version = "0.1.5"
6
+ version = "0.1.6"
7
7
 
8
8
  def __init__(self, tree: ast.AST, filename: str):
9
9
  pass
@@ -4,7 +4,7 @@ requires = [ "poetry-core>=2.0" ]
4
4
 
5
5
  [project]
6
6
  name = "flake8-diff-only"
7
- version = "0.1.5"
7
+ version = "0.1.6"
8
8
  description = "Flake8 plugin to show errors only on changed lines"
9
9
  readme = "README.md"
10
10
 
@@ -1,12 +0,0 @@
1
- # Project: flake8-diff-only
2
-
3
- ## Description
4
- This project provides a plugin for Flake8 that checks only the modified lines of files for Flake8 violations.
5
-
6
- ## Usage
7
-
8
- To install the plugin, use the following command:
9
-
10
- ```bash
11
- pip install flake8-diff-only
12
- ```