Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml#402
Open
halfguru wants to merge 1 commit intodvd-dev:mainfrom
Open
Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml#402halfguru wants to merge 1 commit intodvd-dev:mainfrom
halfguru wants to merge 1 commit intodvd-dev:mainfrom
Conversation
- Replace black, isort, flake8 with ruff (formatter + linter) - Replace Poetry with uv for dependency management - Drop Node.js/npm/prettier entirely - Raise minimum Python version to 3.11 - Add pytest to CI alongside pre-commit - Add mock-based unit tests for core modules (64 tests) - Remove dead config: .flake8, .yamllint, .prettierignore, .nvmrc - Update devcontainer, dependabot, and CI workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Why ruff?
Why uv?
poetry.lockwith a modern, fast Python package managerpyproject.tomlis the modern standard (PEP 621), consolidates config into one fileuv.lockSummary
ruff-pre-commitin.pre-commit-config.yamlpyproject.tomlfrom Poetry to PEP 621 metadata, replacepoetry.lockwithuv.lockuvfor dependency managementDeviceAttribute,DeviceReading,HiloDevice, utilities, state management)Removed files
.flake8: migrated topyproject.toml.prettierignore: no longer needed without prettier.yamllint: dead config, not used by any pre-commit hook.nvmrc: no longer needed without Node.jspackage.json,package-lock.json: no longer needed without Node.jspoetry.lock: replaced byuv.lockrequirements.txt,test-requirements.txt: replaced by[project.dependencies]inpyproject.toml.github/workflows/constraints.txt: no longer needed