Skip to content

Commit

Permalink
build: updates dev dependencies to use latest (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoclyps authored Dec 14, 2023
1 parent 440cf3f commit a8b3b24
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 73 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ repos:
files: ^tests/app/

- repo: https://github.com/ambv/black
rev: 23.11.0
rev: 23.12.0
hooks:
- id: black

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.6
hooks:
- id: bandit
description: Security oriented static analyser for python code
Expand Down Expand Up @@ -99,12 +99,12 @@ repos:
- tomli

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.7
rev: v0.1.8
hooks:
- id: ruff

- repo: https://github.com/dosisod/refurb
rev: v1.24.0
rev: v1.25.0
hooks:
- id: refurb

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ Update packages but ignore the `dev` group
poetry upgrade --without dev
```

## Example Usage

To Add poetry-plugin-upgrade to poetry using the latest version and to bump all your dev dependencies without modifying transitive dependencies you can run

```bash
poetry self add poetry-plugin-upgrade

poetry upgrade --only=dev --latest --pinned --no-interaction --no-install
```

## Contributing

Contributions are welcome! See the [Contributing Guide](https://github.com/apoclyps/poetry-plugin-upgrade/blob/master/CONTRIBUTING.md).
Expand Down
96 changes: 50 additions & 46 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ include = ["LICENSE.md"]

[tool.poetry.dependencies]
python = "^3.10"
poetry = "^1.6.1"
poetry = "^1.7.1"

[tool.poetry.group.dev.dependencies]
black = "23.11.0"
black = "23.12.0"
codespell = "2.2.6"
freezegun = "1.3.1"
ipdb = "0.13.13"
mypy = "1.7.1"
pre-commit = "3.5.0"
pre-commit = "3.6.0"
pytest = "7.4.3"
pytest-cov = "4.1.0"
pytest-mock = "3.12.0"
refurb = "1.25.0"
ruff = "0.1.7"
ruff = "0.1.8"
vcrpy = "5.1.0"

[tool.poetry.plugins."poetry.application.plugin"]
Expand Down
38 changes: 19 additions & 19 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ def test_handle_dependency(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="^1.0",
groups=["main"],
)
new_version = "2.0.0"
package = Package(
new_version: str = "2.0.0"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down Expand Up @@ -60,13 +60,13 @@ def test_handle_dependency_with_pinned_version(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="1.0",
groups=["main"],
)
new_version = "2.0.0"
package = Package(
new_version: str = "2.0.0"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down Expand Up @@ -99,7 +99,7 @@ def test_handle_dependency_with_pinned_version(
)
bump_version_in_pyproject_content.assert_called_once_with(
dependency=dependency,
new_version=f"{new_version}",
new_version=new_version,
pyproject_content=content,
)

Expand All @@ -108,13 +108,13 @@ def test_handle_dependency_with_latest(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="^1.0",
groups=["main"],
)
new_version = "2.0.0"
package = Package(
new_version: str = "2.0.0"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down Expand Up @@ -156,13 +156,13 @@ def test_handle_dependency_with_zero_caret(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="^0",
groups=["main"],
)
new_version = "0.1"
package = Package(
new_version: str = "0.1"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down Expand Up @@ -204,13 +204,13 @@ def test_handle_dependency_excluded(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="^1.0",
groups=["main"],
)
new_version = "2.0.0"
package = Package(
new_version: str = "2.0.0"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down Expand Up @@ -243,13 +243,13 @@ def test_handle_dependency_preserve_wildcard(
upgrade_cmd_tester: TestUpgradeCommand,
mocker: MockerFixture,
) -> None:
dependency = Dependency(
dependency: Dependency = Dependency(
name="foo",
constraint="*",
groups=["main"],
)
new_version = "2.0.0"
package = Package(
new_version: str = "2.0.0"
package: Package = Package(
name=dependency.name,
version=new_version,
)
Expand Down

0 comments on commit a8b3b24

Please sign in to comment.