SShortSingh.
Back to feed

Developer builds CLI tool to auto-resolve Python import-only Git merge conflicts

0
·1 views

A developer created a small command-line tool called import-resolve-cli after noticing a recurring complaint on Reddit about Git merge conflicts caused solely by differing Python import statements. The tool automatically merges both sides of a conflict block when every line involved is a single-line import or comment, then removes the conflict markers. It supports options like --dry-run, --check, and an optional per-repo merge driver hook, and intentionally skips anything more complex, such as logic conflicts or multiline imports. The tool is available on PyPI, requires Python 3.9 or higher, and has no runtime dependencies. Existing solutions like isort or git checkout --ours either fail mid-conflict or discard one side's imports entirely, which motivated the author to build a focused, minimal alternative.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Strong QA Systems Cut Ambiguity, Speed Release Decisions, Study Finds

A DEV Community guide argues that effective QA work is fundamentally about managing ambiguity rather than simply executing tests, with well-designed systems narrowing decisions before discussions begin. The guide evaluates test-case management tools, recommending teams move beyond spreadsheets to solutions that trace tests to requirements, preserve execution history, and unify manual and automated coverage. It also highlights the importance of scenario-based testing for complex UI patterns like infinite scroll, where bugs often emerge during state transitions rather than in static views. For design-token changes, the guide advises organizing visual test reviews by component scope and masking dynamic content to avoid reviewer fatigue from excessive false diffs. Finally, it recommends that test-reporting dashboards be built around release decisions, surfacing critical-path failures, ownership, and flaky tests rather than overwhelming engineers and executives with raw metrics.

0
ProgrammingDEV Community ·

Developer builds Solidity scanner that prioritizes accuracy over finding volume

A developer has built a smart-contract security scanner for Solidity code designed to eliminate false positives, in contrast to existing tools that often generate hundreds of misleading findings. The scanner uses deterministic checks rather than AI guesswork to verify whether access controls, token whitelists, and return-value handling are genuinely absent before raising an alert. Testing against production protocols and the entire OpenZeppelin library produced zero false positives, with 13 previously flagged findings correctly identified as non-issues and suppressed. Key improvements include recognizing intended role-based access patterns, detecting token curation registries that rule out fee-on-transfer risks, and reading surrounding code lines to avoid misclassifying checked call return values. The developer argues that a smaller, verified set of real findings is more valuable to protocol teams than large noisy reports that erode trust in security tooling.

0
ProgrammingDEV Community ·

Choosing a Test Automation Framework Is a Product Decision, Not Just a Technical One

As test automation options have expanded beyond Selenium to include Playwright, AI-generated tests, and managed platforms, teams risk optimizing for speed of setup rather than long-term maintainability. Open-source tools may appear nearly free, but the real costs are hidden in engineering time spent managing infrastructure, fixing flaky tests, and maintaining shared code. AI coding assistants can rapidly generate test scripts, yet someone still must understand the logic, locators, and assumptions embedded in that generated code. The right choice between a code-first framework and a managed testing platform ultimately depends on a team's actual size, skill set, and capacity to own ongoing maintenance. As AI also accelerates frontend development and increases UI churn, the sustainability of whichever testing approach a team selects becomes even more critical.

Developer builds CLI tool to auto-resolve Python import-only Git merge conflicts · ShortSingh