Skip to content

Conversation

ryan-wolbeck
Copy link
Collaborator

Update dev dependencies and improve pyproject.toml configuration

Overview

This PR updates all development dependencies to their latest versions and modernizes the project configuration to follow current best practices.

Changes

Dependency Updates

  • pytest: ^6.1.2^8.0.0
  • black: ^22.8.0^24.0.0
  • pre-commit: ^2.0^4.0.0
  • isort: ^5.6.4^5.13.0
  • pylint: ^3.0.3^3.2.0
  • flake8: ^7.0.0^7.1.0

Configuration Improvements

  • Modern Poetry format: Migrated from deprecated [tool.poetry.dev-dependencies] to [tool.poetry.group.dev.dependencies]
  • Black configuration: Added explicit [tool.black] section with line length and target versions
  • Python version markers: Improved numpy/scipy version constraints using PEP 508 markers for better clarity
  • Pre-commit updates:
    • Updated Black version in .pre-commit-config.yaml to match pyproject.toml
    • Fixed deprecated default_stages configuration
    • Updated pre-commit-hooks from v2.2.3 to v6.0.0

Testing

  • ✅ All tests pass locally
  • ✅ All linters pass without warnings
  • ✅ CI should pass cleanly (no more linting errors)

Breaking Changes

None - this is purely a development dependency update with no impact on the public API.

Related

Closes #379

- Update dev dependencies to latest versions:
  - pytest: ^6.1.2 → ^8.0.0
  - black: ^22.8.0 → ^24.0.0
  - pre-commit: ^2.0 → ^4.0.0
  - isort: ^5.6.4 → ^5.13.0
  - pylint: ^3.0.3 → ^3.2.0
  - flake8: ^7.0.0 → ^7.1.0

- Migrate to modern Poetry format: [tool.poetry.dev-dependencies] → [tool.poetry.group.dev.dependencies]
- Add [tool.black] configuration with explicit line length and target versions
- Improve Python version markers for numpy/scipy using PEP 508 markers

Closes #379
Remove py312 and py313 from target-version as they're not supported
by the current Black version in CI environment
- Update Black version from 22.8.0 to 24.10.0 to match pyproject.toml
- Fix deprecated default_stages: commit -> pre-commit
- Apply Black formatting changes (blank lines after docstrings)
- Update code formatting to match updated linter configuration
- Fix deprecated stage names warning
- Update from v2.2.3 to v6.0.0 to use modern pre-commit hooks
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.

Poetry Dev Dependencies Depreciation
1 participant