Skip to content

Conversation

@stuartcampbell
Copy link
Collaborator

Just a regular update to the latest version of dependencies.

Also, applied ruff linter fixes - which are pretty much cleaning up imports.

Copy link
Contributor

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 PR upgrades dependencies and applies ruff linter fixes to clean up the import order and remove unused or duplicate imports.

  • Consolidated and reordered import statements across multiple files
  • Removed deprecated or unused imports based on linter recommendations

Reviewed Changes

Copilot reviewed 26 out of 27 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/nsls2api/services/facility_service.py Reordered imports to comply with style and linter rules
src/nsls2api/services/bnlpeople_service.py Adjusted import order and modified exception handling for cleaner logging
src/nsls2api/models/proposals.py Removed an unused import to streamline code
src/nsls2api/models/pass_models.py Reordered pydantic import placement per linter suggestions
src/nsls2api/models/jobs.py Updated import order by moving StrEnum import to the top
src/nsls2api/models/apikeys.py Reordered Beanie imports for consistency
src/nsls2api/models/init.py Reordered module imports to reflect updated dependency requirements
src/nsls2api/local_cli.py Consolidated multiple separate import statements into one line
src/nsls2api/infrastructure/security.py Reordered imports and updated the fastapi import sequence
src/nsls2api/infrastructure/config.py Updated import ordering and added a logging statement for the settings file
src/nsls2api/exception_handlers.py Reordered the import of the main app for clarity
src/nsls2api/cli/cli.py Consolidated CLI imports for readability
src/nsls2api/cli/auth.py Eliminated duplicate imports and reordered module imports
src/nsls2api/api/v1/stats_api.py Adjusted the order of imported models as per linter fixes
src/nsls2api/api/v1/jobs_api.py Minor formatting adjustments in import organization
src/nsls2api/api/v1/facility_api.py Reordered service imports to maintain consistency
src/nsls2api/api/models/stats_model.py Applied minor formatting changes to import spacing
src/nsls2api/api/models/person_model.py Reordered typing imports for consistency
src/nsls2api/api/models/facility_model.py Made minor adjustments to import layout
Files not reviewed (1)
  • requirements-dev.txt: Language not supported

@padraic-shafer padraic-shafer merged commit ad53e61 into NSLS2:main Apr 9, 2025
4 checks passed
@stuartcampbell stuartcampbell deleted the upgrade-deps branch April 9, 2025 16:11
@stuartcampbell
Copy link
Collaborator Author

Thank you @padraic-shafer

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.

2 participants