Skip to content

Comments

lint/deps#29

Open
Adafede wants to merge 6 commits intomainfrom
lint/deps
Open

lint/deps#29
Adafede wants to merge 6 commits intomainfrom
lint/deps

Conversation

@Adafede
Copy link
Member

@Adafede Adafede commented Feb 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 3, 2026 14:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request performs dependency updates and code formatting improvements. The PR title "up" is terse but appears to indicate an "update" operation.

Changes:

  • Removed unnecessary argparse dependency (correctly, as it's Python stdlib)
  • Updated multiple dependencies to newer versions (cfgv, filelock, identify, jsonschema, nodeenv, packaging, platformdirs, pre-commit, pydantic, pydantic-core, rpds-py, ruff, virtualenv)
  • Applied code formatting changes (trailing commas) to maintain consistency
  • Updated pre-commit hooks with additional checks
  • Changed from [project.optional-dependencies] to [dependency-groups] (breaking change)
  • Fixed typo in CHANGELOG.md
  • Introduced typo in README.md (NWO → NOW)

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
uv.lock Updated dependency versions and removed argparse package
tests/test_main_cli.py Applied code formatting (trailing commas)
mite_schema/main.py Applied code formatting (trailing commas)
pyproject.toml Restructured configuration, changed dependency management approach, and removed argparse
.pre-commit-config.yaml Added new hooks and updated versions, disabled pytest hook
README.md Changed NWO to NOW (incorrect change)
CHANGELOG.md Fixed typo: peristing → persisting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"ruff~=0.13"
]
[dependency-groups]
dev = ["pre-commit~=4.3", "pytest~=8.4", "ruff~=0.13"]
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pyproject.toml specifies ruff~=0.13 in the dev dependency group, but uv.lock has resolved to version 0.14.14. The ~= operator allows minor version updates (0.13.x) but should not allow 0.14.x. This indicates the lockfile is inconsistent with the dependency specification. Either update pyproject.toml to ruff~=0.14 to match the locked version, or regenerate the lockfile with the correct version constraint.

Suggested change
dev = ["pre-commit~=4.3", "pytest~=8.4", "ruff~=0.13"]
dev = ["pre-commit~=4.3", "pytest~=8.4", "ruff~=0.14"]

Copilot uses AI. Check for mistakes.

[project.scripts]
mite_schema = "mite_schema.main:main"

Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from [project.optional-dependencies] to [dependency-groups] is a significant breaking change for users. The [project.optional-dependencies] section is a PEP 621 standard that allows installing dev dependencies with pip install .[dev]. The [dependency-groups] section is a uv-specific feature (PEP 735) that requires users to use uv for installation. This change will break existing workflows for users who install the package with pip using pip install -e .[dev]. Consider maintaining backward compatibility or documenting this breaking change clearly.

Suggested change
[project.optional-dependencies]
dev = ["pre-commit~=4.3", "pytest~=8.4", "ruff~=0.13"]

Copilot uses AI. Check for mistakes.
Comment on lines 63 to 67
# - id: pytest
# name: pytest
# entry: uv run pytest
# pass_filenames: false
# language: system
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pytest pre-commit hook has been commented out without explanation. This means tests will no longer run automatically on commit, which could lead to committing broken code. If this was intentional, it should be documented. If tests are slow or problematic, consider making this hook optional or running tests only on specific files. The commented-out hook also shows pass_filenames: false was added, which is a good practice for pytest.

Copilot uses AI. Check for mistakes.
@Adafede
Copy link
Member Author

Adafede commented Feb 3, 2026

@mmzdouc ready!

@Adafede Adafede changed the title up lint/deps Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant