mypy-and-pylint #2
No reviewers
Labels
No labels
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleverdatasets/dataset-uploader!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mypy-and-pylint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some work toward cleaning the scripts.
ruff format. 7f50361683ruff check --fix. c5707689d6A few initial comments...
@ -90,3 +93,3 @@# Handle compressed filesif file_path.suffix == ".gz":file_obj = gzip.open(file_path, "rt", encoding="utf-8")with gzip.open(file_path, "rt", encoding="utf-8") as file_obj:Why was this added?
Thanks for the feedback. The duplication came from fixing SIM115 (use a context manager), which required opening files with with. I've refactored to remove the duplication by extracting the shared logic into _process_ntriples_file() while keeping the context managers. This addresses both the Ruff error and the code duplication.
@ -258,4 +267,0 @@if current_batch:yield current_batchelse:This is the point where the comparer got confused...
This is part of the refactoring of the code, this part of the code is now moved into a helper function. The logic is unchanged.
@ -276,0 +280,4 @@# Yield remaining linesif current_batch:yield current_batchelse:Again, why was this added?
This is part of the refactoring of the code, this part of the code is now moved into a helper function. The logic is unchanged.
@ -344,3 +403,2 @@def stream_turtle_chunks(file_path: Path, chunk_size: int = 10000) -> Iterator[list[dict[str, str]]]:"""Stream Turtle file in chunks using incremental parsing.def _process_turtle_file(Again, this is different. What changed?
The stream_turtle_chunks function was split into _process_turtle_file() helper to remove duplication when fixing SIM115.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.