Skip to content

Commit

Permalink
Bump the python-dependencies group across 1 directory with 8 updates (#…
Browse files Browse the repository at this point in the history
…35)

* Bump the python-dependencies group across 1 directory with 8 updates

Bumps the python-dependencies group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [typer](https://github.com/tiangolo/typer) | `0.9.0` | `0.12.3` |
| [pre-commit](https://github.com/pre-commit/pre-commit) | `3.6.1` | `3.7.1` |
| [ruff](https://github.com/astral-sh/ruff) | `0.2.1` | `0.4.7` |
| [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.0` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.0.0` | `8.2.1` |
| [sphinx](https://github.com/sphinx-doc/sphinx) | `7.2.6` | `7.3.7` |
| [furo](https://github.com/pradyunsg/furo) | `2024.1.29` | `2024.5.6` |
| [sphinx-autoapi](https://github.com/readthedocs/sphinx-autoapi) | `3.0.0` | `3.1.1` |



Updates `typer` from 0.9.0 to 0.12.3
- [Release notes](https://github.com/tiangolo/typer/releases)
- [Changelog](https://github.com/tiangolo/typer/blob/master/docs/release-notes.md)
- [Commits](fastapi/typer@0.9.0...0.12.3)

Updates `pre-commit` from 3.6.1 to 3.7.1
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](pre-commit/pre-commit@v3.6.1...v3.7.1)

Updates `ruff` from 0.2.1 to 0.4.7
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.2.1...v0.4.7)

Updates `mypy` from 1.8.0 to 1.10.0
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.8.0...v1.10.0)

Updates `pytest` from 8.0.0 to 8.2.1
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.0.0...8.2.1)

Updates `sphinx` from 7.2.6 to 7.3.7
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](sphinx-doc/sphinx@v7.2.6...v7.3.7)

Updates `furo` from 2024.1.29 to 2024.5.6
- [Release notes](https://github.com/pradyunsg/furo/releases)
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md)
- [Commits](pradyunsg/furo@2024.01.29...2024.05.06)

Updates `sphinx-autoapi` from 3.0.0 to 3.1.1
- [Release notes](https://github.com/readthedocs/sphinx-autoapi/releases)
- [Changelog](https://github.com/readthedocs/sphinx-autoapi/blob/main/CHANGELOG.rst)
- [Commits](readthedocs/sphinx-autoapi@v3.0.0...v3.1.1)

---
updated-dependencies:
- dependency-name: typer
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: pre-commit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: furo
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: sphinx-autoapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* Run Ruff

Signed-off-by: GitHub <[email protected]>

* Update deprecated linting config

Signed-off-by: GitHub <[email protected]>

* Set mypy to strict

Signed-off-by: GitHub <[email protected]>

* Bump Ruff to latest

Signed-off-by: GitHub <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: GitHub <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bradley Reynolds <[email protected]>
  • Loading branch information
dependabot[bot] and shenanigansd authored Jun 22, 2024
1 parent 0a886f4 commit f1fc215
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function Invoke-Upgrade-Deps
function Invoke-Lint
{
pre-commit run --all-files
python -m ruff --fix .
python -m ruff check --fix .
python -m ruff format .
python -m mypy src/
python -m mypy --strict src/
}

function Invoke-Test
Expand Down
20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"typer==0.9.0"
"typer==0.12.3"
]

[project.urls]
Expand All @@ -21,18 +21,18 @@ bpp = "bpp.cli:app"

[project.optional-dependencies]
dev = [
"pre-commit==3.6.1",
"ruff==0.2.1",
"mypy==1.8.0",
"pre-commit==3.7.1",
"ruff==0.4.10",
"mypy==1.10.0",
]
tests = [
"pytest==8.0.0",
"pytest==8.2.1",
"pytest-randomly==3.15.0",
]
docs = [
"sphinx==7.2.6",
"furo==2024.1.29",
"sphinx-autoapi==3.0.0",
"sphinx==7.3.7",
"furo==2024.5.6",
"sphinx-autoapi==3.1.1",
"releases==2.1.1",
]

Expand All @@ -47,7 +47,9 @@ target-version = "py312"
line-length = 120

[tool.ruff.lint]
select = ["ALL"]
select = [
"ALL",
]
ignore = [
"CPY001", # (Missing copyright notice at top of file) - No license
]
Expand Down
2 changes: 1 addition & 1 deletion src/bpp/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_input(self: Self) -> None:
"""Output the ASCII value of the byte at the current position."""
self.memory[self.current_position] = ord(sys.stdin.read(1))

def handle_token(self: Self, token: Token) -> ResultState:
def handle_token(self: Self, token: Token) -> ResultState: # noqa: C901
"""Handle a single token."""
match token:
case Token.INCREMENT_POINTER:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_example_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_example_files(example_file: Path, expected_result: str) -> None:

def test_example_files_with_input(monkeypatch) -> None: # noqa: ANN001 -- pytest builtin fixture
"""Test example files with input."""
source = Path("./examples/echo.bf").read_text()
source = Path("./examples/echo.bf").read_text(encoding="locale")
monkeypatch.setattr("sys.stdin", StringIO("a"))
interpreter = Interpreter()
assert interpreter.run(source) == "a"

0 comments on commit f1fc215

Please sign in to comment.