Skip to content

Commit

Permalink
Bump tool and requirement versions
Browse files Browse the repository at this point in the history
  • Loading branch information
oeuftete committed Jun 2, 2024
1 parent d30d81d commit c5930f3
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ repos:
exclude: "^(.direnv/|.*year201[89])"
types: [python]
- repo: https://github.com/ambv/black
rev: 23.11.0
rev: 24.4.2
hooks:
- id: black
exclude: ^.direnv/
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
exclude: ^.direnv/
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pre-commit 3.7.0
pre-commit 3.7.1
python 3.12.3
16 changes: 8 additions & 8 deletions adventofcode/year2021/day10/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def __attrs_post_init__(self):
self.parsed_lines = list(map(ParserLine, self.lines))
for l in self.parsed_lines:
match (l.first_illegal):
case (")"):
case ")":
self.syntax_score += 3
case ("]"):
case "]":
self.syntax_score += 57
case ("}"):
case "}":
self.syntax_score += 1197
case (">"):
case ">":
self.syntax_score += 25137

@property
Expand All @@ -77,13 +77,13 @@ def autocomplete_score(s: str) -> int:
score = 0
for c in s:
match (c):
case (")"):
case ")":
score = 5 * score + 1
case ("]"):
case "]":
score = 5 * score + 2
case ("}"):
case "}":
score = 5 * score + 3
case (">"):
case ">":
score = 5 * score + 4

LOGGER.debug("Interim score for -%s-: %d", s, score)
Expand Down
34 changes: 17 additions & 17 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ anytree==2.12.1
# via -r requirements.in
aocd-example-parser==2023.12.17
# via advent-of-code-data
astroid==3.1.0
astroid==3.2.2
# via pylint
asttokens==2.4.1
# via stack-data
Expand All @@ -24,19 +24,19 @@ beautifulsoup4==4.12.3
# via advent-of-code-data
bitarray==2.9.2
# via -r requirements.in
black==24.4.0
black==24.4.2
# via
# -r dev-requirements.in
# python-lsp-black
certifi==2024.2.2
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via black
codecov==2.1.13
# via -r requirements.in
coverage[toml]==7.4.4
coverage[toml]==7.5.3
# via
# codecov
# pytest-cov
Expand All @@ -48,7 +48,7 @@ docstring-to-markdown==0.15
# via python-lsp-server
executing==2.0.1
# via stack-data
filelock==3.13.4
filelock==3.14.0
# via pytest-mypy
flake8==7.0.0
# via python-lsp-server
Expand All @@ -58,7 +58,7 @@ importlib-metadata==7.1.0
# via yapf
iniconfig==2.0.0
# via pytest
ipython==8.23.0
ipython==8.25.0
# via -r dev-requirements.in
isort==5.13.2
# via
Expand All @@ -76,7 +76,7 @@ mccabe==0.7.0
# flake8
# pylint
# python-lsp-server
mypy==1.9.0
mypy==1.10.0
# via
# pylsp-mypy
# pytest-mypy
Expand All @@ -99,7 +99,7 @@ pebble==5.0.7
# via advent-of-code-data
pexpect==4.9.0
# via ipython
platformdirs==4.2.0
platformdirs==4.2.2
# via
# black
# pylint
Expand All @@ -109,7 +109,7 @@ pluggy==1.5.0
# via
# pytest
# python-lsp-server
prompt-toolkit==3.0.43
prompt-toolkit==3.0.45
# via ipython
ptyprocess==0.7.0
# via pexpect
Expand All @@ -126,17 +126,17 @@ pyflakes==3.2.0
# via
# flake8
# python-lsp-server
pygments==2.17.2
pygments==2.18.0
# via ipython
pylint==3.1.0
pylint==3.2.2
# via
# pytest-pylint
# python-lsp-server
pyls-isort==0.2.2
# via -r dev-requirements.in
pylsp-mypy==0.6.8
# via -r dev-requirements.in
pytest==8.1.1
pytest==8.2.1
# via
# -r requirements.in
# pytest-cov
Expand All @@ -160,7 +160,7 @@ python-lsp-server[all,pylint]==1.11.0
# python-lsp-black
pytoolconfig[global]==1.3.1
# via rope
requests==2.31.0
requests==2.32.3
# via codecov
rope==1.13.0
# via python-lsp-server
Expand All @@ -178,15 +178,15 @@ tomli==2.0.1
# via
# pylsp-mypy
# yapf
tomlkit==0.12.4
tomlkit==0.12.5
# via pylint
traitlets==5.14.3
# via
# ipython
# matplotlib-inline
typing-extensions==4.11.0
typing-extensions==4.12.1
# via mypy
ujson==5.9.0
ujson==5.10.0
# via
# python-lsp-jsonrpc
# python-lsp-server
Expand All @@ -202,5 +202,5 @@ whatthepatch==1.0.5
# via python-lsp-server
yapf==0.40.2
# via python-lsp-server
zipp==3.18.1
zipp==3.19.1
# via importlib-metadata
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ line_length = 88

[tool.black]
line_length = 88
target_version = ["py311"]
target_version = ["py312"]

[tool.mypy]
strict_optional = false
Expand Down
24 changes: 12 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile
# pip-compile requirements.in
#
advent-of-code-data==2.0.1
# via -r requirements.in
anytree==2.12.1
# via -r requirements.in
aocd-example-parser==2023.12.17
# via advent-of-code-data
astroid==3.1.0
astroid==3.2.2
# via pylint
attrs==23.2.0
# via
Expand All @@ -20,19 +20,19 @@ beautifulsoup4==4.12.3
# via advent-of-code-data
bitarray==2.9.2
# via -r requirements.in
certifi==2024.2.2
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
codecov==2.1.13
# via -r requirements.in
coverage[toml]==7.4.4
coverage[toml]==7.5.3
# via
# codecov
# pytest-cov
dill==0.3.8
# via pylint
filelock==3.13.4
filelock==3.14.0
# via pytest-mypy
idna==3.7
# via requests
Expand All @@ -42,7 +42,7 @@ isort==5.13.2
# via pylint
mccabe==0.7.0
# via pylint
mypy==1.9.0
mypy==1.10.0
# via pytest-mypy
mypy-extensions==1.0.0
# via mypy
Expand All @@ -52,13 +52,13 @@ packaging==24.0
# via pytest
pebble==5.0.7
# via advent-of-code-data
platformdirs==4.2.0
platformdirs==4.2.2
# via pylint
pluggy==1.5.0
# via pytest
pylint==3.1.0
pylint==3.2.2
# via pytest-pylint
pytest==8.1.1
pytest==8.2.1
# via
# -r requirements.in
# pytest-cov
Expand All @@ -70,15 +70,15 @@ pytest-mypy==0.10.3
# via -r requirements.in
pytest-pylint==0.21.0
# via -r requirements.in
requests==2.31.0
requests==2.32.3
# via codecov
six==1.16.0
# via anytree
soupsieve==2.5
# via beautifulsoup4
tomlkit==0.12.4
tomlkit==0.12.5
# via pylint
typing-extensions==4.11.0
typing-extensions==4.12.1
# via mypy
urllib3==2.2.1
# via
Expand Down

0 comments on commit c5930f3

Please sign in to comment.