pull-request-fixer 0.1.3__tar.gz → 0.1.5__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.
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/PKG-INFO +16 -16
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/README.md +11 -11
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/pyproject.toml +5 -7
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/_version.py +2 -2
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/blocked_pr_scanner.py +0 -2
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/cli.py +459 -466
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/git_config.py +0 -2
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/github_client.py +0 -5
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/models.py +43 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/pr_file_fixer.py +368 -286
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/pr_scanner.py +6 -7
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/.gitignore +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/.pre-commit-hooks.yaml +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/LICENSE +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/LICENSES/Apache-2.0.txt +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/scripts/README.md +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/__init__.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/exceptions.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/file_fixer.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/graphql_queries.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/pr_fixer.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/progress_tracker.py +0 -0
- {pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/py.typed +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pull-request-fixer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Pull request formatter and fixer with GitHub integration
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Repository, https://github.com/
|
|
7
|
-
Project-URL: Bug Tracker, https://github.com/
|
|
5
|
+
Project-URL: Homepage, https://github.com/lfreleng-actions/pull-request-fixer
|
|
6
|
+
Project-URL: Repository, https://github.com/lfreleng-actions/pull-request-fixer.git
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/lfreleng-actions/pull-request-fixer/issues
|
|
8
8
|
Author-email: The Linux Foundation <releng@linuxfoundation.org>
|
|
9
9
|
License: Apache-2.0
|
|
10
10
|
License-File: LICENSE
|
|
@@ -24,7 +24,7 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
24
24
|
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
25
25
|
Requires-Python: >=3.10
|
|
26
26
|
Requires-Dist: aiolimiter>=1.2.1
|
|
27
|
-
Requires-Dist: dependamerge>=0.1
|
|
27
|
+
Requires-Dist: dependamerge>=0.9.1
|
|
28
28
|
Requires-Dist: httpx[http2]>=0.28.1
|
|
29
29
|
Requires-Dist: pydantic>=2.12.5
|
|
30
30
|
Requires-Dist: rich>=14.2.0
|
|
@@ -347,7 +347,7 @@ Automatically fixed pull request metadata:
|
|
|
347
347
|
- **Pull request body** updated to match commit message
|
|
348
348
|
|
|
349
349
|
---
|
|
350
|
-
*This fix was automatically applied by [pull-request-fixer](https://github.com/
|
|
350
|
+
*This fix was automatically applied by [pull-request-fixer](https://github.com/lfreleng-actions/pull-request-fixer)*
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
The comment includes the items that changed. For
|
|
@@ -617,7 +617,7 @@ If updates fail:
|
|
|
617
617
|
### Setup
|
|
618
618
|
|
|
619
619
|
```bash
|
|
620
|
-
git clone https://github.com/
|
|
620
|
+
git clone https://github.com/lfreleng-actions/pull-request-fixer.git
|
|
621
621
|
cd pull-request-fixer
|
|
622
622
|
uv venv
|
|
623
623
|
source .venv/bin/activate
|
|
@@ -663,24 +663,24 @@ Apache-2.0
|
|
|
663
663
|
## Support
|
|
664
664
|
|
|
665
665
|
- **Issues**:
|
|
666
|
-
<https://github.com/
|
|
666
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/issues>
|
|
667
667
|
- **Documentation**:
|
|
668
|
-
<https://github.com/
|
|
668
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/blob/main/IMPLEMENTATION.md>
|
|
669
669
|
- **Changelog**:
|
|
670
|
-
<https://github.com/
|
|
670
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/blob/main/CHANGELOG.md>
|
|
671
671
|
|
|
672
672
|
## Related Projects
|
|
673
673
|
|
|
674
674
|
- [dependamerge](https://github.com/lfit/dependamerge) - Automatically merge
|
|
675
675
|
automation PRs
|
|
676
|
-
- [markdown-table-fixer]
|
|
677
|
-
markdown table formatting
|
|
676
|
+
- [markdown-table-fixer][mtf-repo] - Fix markdown table formatting
|
|
678
677
|
|
|
679
678
|
## Acknowledgments
|
|
680
679
|
|
|
681
680
|
This project uses patterns from:
|
|
682
681
|
|
|
683
|
-
- [dependamerge](https://github.com/lfit/dependamerge) for efficient
|
|
684
|
-
organization scanning
|
|
685
|
-
- [markdown-table-fixer]
|
|
686
|
-
|
|
682
|
+
- [dependamerge](https://github.com/lfit/dependamerge) for efficient
|
|
683
|
+
GitHub organization scanning
|
|
684
|
+
- [markdown-table-fixer][mtf-repo] for the initial codebase structure
|
|
685
|
+
|
|
686
|
+
[mtf-repo]: https://github.com/lfreleng-actions/markdown-table-fixer
|
|
@@ -305,7 +305,7 @@ Automatically fixed pull request metadata:
|
|
|
305
305
|
- **Pull request body** updated to match commit message
|
|
306
306
|
|
|
307
307
|
---
|
|
308
|
-
*This fix was automatically applied by [pull-request-fixer](https://github.com/
|
|
308
|
+
*This fix was automatically applied by [pull-request-fixer](https://github.com/lfreleng-actions/pull-request-fixer)*
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
The comment includes the items that changed. For
|
|
@@ -575,7 +575,7 @@ If updates fail:
|
|
|
575
575
|
### Setup
|
|
576
576
|
|
|
577
577
|
```bash
|
|
578
|
-
git clone https://github.com/
|
|
578
|
+
git clone https://github.com/lfreleng-actions/pull-request-fixer.git
|
|
579
579
|
cd pull-request-fixer
|
|
580
580
|
uv venv
|
|
581
581
|
source .venv/bin/activate
|
|
@@ -621,24 +621,24 @@ Apache-2.0
|
|
|
621
621
|
## Support
|
|
622
622
|
|
|
623
623
|
- **Issues**:
|
|
624
|
-
<https://github.com/
|
|
624
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/issues>
|
|
625
625
|
- **Documentation**:
|
|
626
|
-
<https://github.com/
|
|
626
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/blob/main/IMPLEMENTATION.md>
|
|
627
627
|
- **Changelog**:
|
|
628
|
-
<https://github.com/
|
|
628
|
+
<https://github.com/lfreleng-actions/pull-request-fixer/blob/main/CHANGELOG.md>
|
|
629
629
|
|
|
630
630
|
## Related Projects
|
|
631
631
|
|
|
632
632
|
- [dependamerge](https://github.com/lfit/dependamerge) - Automatically merge
|
|
633
633
|
automation PRs
|
|
634
|
-
- [markdown-table-fixer]
|
|
635
|
-
markdown table formatting
|
|
634
|
+
- [markdown-table-fixer][mtf-repo] - Fix markdown table formatting
|
|
636
635
|
|
|
637
636
|
## Acknowledgments
|
|
638
637
|
|
|
639
638
|
This project uses patterns from:
|
|
640
639
|
|
|
641
|
-
- [dependamerge](https://github.com/lfit/dependamerge) for efficient
|
|
642
|
-
organization scanning
|
|
643
|
-
- [markdown-table-fixer]
|
|
644
|
-
|
|
640
|
+
- [dependamerge](https://github.com/lfit/dependamerge) for efficient
|
|
641
|
+
GitHub organization scanning
|
|
642
|
+
- [markdown-table-fixer][mtf-repo] for the initial codebase structure
|
|
643
|
+
|
|
644
|
+
[mtf-repo]: https://github.com/lfreleng-actions/markdown-table-fixer
|
|
@@ -38,7 +38,7 @@ dependencies = [
|
|
|
38
38
|
"pydantic>=2.12.5",
|
|
39
39
|
"aiolimiter>=1.2.1",
|
|
40
40
|
"tenacity>=9.1.2",
|
|
41
|
-
"dependamerge>=0.1
|
|
41
|
+
"dependamerge>=0.9.1",
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
[project.optional-dependencies]
|
|
@@ -53,9 +53,9 @@ dev = [
|
|
|
53
53
|
]
|
|
54
54
|
|
|
55
55
|
[project.urls]
|
|
56
|
-
Homepage = "https://github.com/
|
|
57
|
-
Repository = "https://github.com/
|
|
58
|
-
"Bug Tracker" = "https://github.com/
|
|
56
|
+
Homepage = "https://github.com/lfreleng-actions/pull-request-fixer"
|
|
57
|
+
Repository = "https://github.com/lfreleng-actions/pull-request-fixer.git"
|
|
58
|
+
"Bug Tracker" = "https://github.com/lfreleng-actions/pull-request-fixer/issues"
|
|
59
59
|
|
|
60
60
|
[project.scripts]
|
|
61
61
|
pull-request-fixer = "pull_request_fixer.cli:cli"
|
|
@@ -233,13 +233,11 @@ markers = [
|
|
|
233
233
|
]
|
|
234
234
|
|
|
235
235
|
[tool.coverage.run]
|
|
236
|
-
source = ["
|
|
236
|
+
source = ["pull_request_fixer"]
|
|
237
237
|
omit = [
|
|
238
238
|
"*/tests/*",
|
|
239
239
|
"*/test_*",
|
|
240
240
|
"*/__pycache__/*",
|
|
241
|
-
"*/venv/*",
|
|
242
|
-
"*/.venv/*",
|
|
243
241
|
]
|
|
244
242
|
|
|
245
243
|
[tool.coverage.report]
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.5'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 5)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
{pull_request_fixer-0.1.3 → pull_request_fixer-0.1.5}/src/pull_request_fixer/blocked_pr_scanner.py
RENAMED
|
@@ -40,7 +40,6 @@ class BlockedPRScanner:
|
|
|
40
40
|
self.max_repo_tasks = max_repo_tasks
|
|
41
41
|
self.logger = logging.getLogger(__name__)
|
|
42
42
|
|
|
43
|
-
# Initialize the dependamerge GitHubService
|
|
44
43
|
self.service = GitHubService(
|
|
45
44
|
token=token,
|
|
46
45
|
progress_tracker=progress_tracker,
|
|
@@ -211,6 +210,5 @@ class BlockedPRScanner:
|
|
|
211
210
|
if result is None:
|
|
212
211
|
return False, []
|
|
213
212
|
|
|
214
|
-
# Extract reason descriptions
|
|
215
213
|
reasons = [reason.description for reason in result.reasons]
|
|
216
214
|
return True, reasons
|