Skip to content

Commit 53144ae

Browse files
authored
Update packages (#57)
* Update packages * Try a newer version of pypy3 * Mark slow test * Use only Python 3.11 * Fix version * Fix ordering
1 parent 7eca76f commit 53144ae

File tree

12 files changed

+279
-231
lines changed

12 files changed

+279
-231
lines changed

.github/workflows/2018.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
python-version:
20-
- pypy-2.7
21-
- pypy-3.7
20+
- '3.11'
21+
- 'pypy-3.11'
2222
runs-on: ubuntu-latest
2323
defaults:
2424
run:
@@ -38,11 +38,16 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
41+
pip install -r requirements.txt
4242
4343
- name: Lint with pylint
4444
run: pylint ./day*/
4545
if: ${{ !contains(matrix.python-version, '2.' )}}
4646

4747
- name: Test with pytest
48-
run: pytest
48+
run: pytest -n auto
49+
if: ${{ !contains(matrix.python-version, 'pypy' )}}
50+
51+
- name: Test with pytest (slow)
52+
run: pytest -n auto --slow
53+
if: ${{ contains(matrix.python-version, 'pypy' )}}

2017/package-lock.json

Lines changed: 239 additions & 218 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

2017/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@eslint/eslintrc": "^3.1.0",
1111
"@eslint/js": "^9.9.1",
1212
"eslint": "^9.9.1",
13-
"globals": "^15.9.0",
13+
"globals": "^16.1.0",
1414
"jest": "^29.4.1"
1515
},
1616
"scripts": {

2018/day21/test_day21.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from os import path
8+
import pytest
89
from .day21 import run_part1, run_part2
910

1011
_CURRENT_FILE_DIR = path.dirname(__file__)
@@ -23,6 +24,7 @@ def test_part1():
2324
assert run_part1(file_content) == 6619857
2425

2526

27+
@pytest.mark.slow
2628
def test_part2():
2729
"""Tests for Part 2."""
2830
with open(_INPUT_FILE, 'r') as input_file:

2018/day24/day24.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class Group: # pylint: disable=too-many-instance-attributes
2020
"""Represents a single group of attackers."""
2121

22-
def __init__(self, team_name, unit_count, hit_points, attack_damage, attack_type, initiative): # pylint: disable=too-many-arguments
22+
def __init__(self, team_name, unit_count, hit_points, attack_damage, attack_type, initiative): # pylint: disable=too-many-arguments,too-many-positional-arguments
2323
self.team_name = team_name
2424
self._unit_count = unit_count
2525
self._hit_points = hit_points

2018/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
pylint
22
pytest
3+
pytest-skip-slow
4+
pytest-xdist

2018/run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
if [[ "$1" == "test" ]]; then
6+
pytest -n auto
7+
elif [[ "$1" == "lint" ]]; then
8+
pylint day*
9+
else
10+
echo "Usage: $0 [test|lint]"
11+
exit 1
12+
fi

2020/go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module github.com/kfarnung/advent-of-code/2020
22

3-
go 1.18
3+
go 1.23.0
44

5-
require github.com/stretchr/testify v1.8.4
5+
toolchain go1.24.3
6+
7+
require github.com/stretchr/testify v1.10.0
68

79
require (
810
github.com/davecgh/go-spew v1.1.1 // indirect

2020/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
33
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
44
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
6-
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
5+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
6+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
77
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
88
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
99
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

2023/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

2024/go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module github.com/kfarnung/advent-of-code/2024
22

3-
go 1.23
3+
go 1.23.0
4+
5+
toolchain go1.24.3
46

57
require (
68
github.com/stretchr/testify v1.10.0
7-
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
9+
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6
810
)
911

1012
require (

2024/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
66
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
77
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo=
88
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak=
9+
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 h1:y5zboxd6LQAqYIhHnB48p0ByQ/GnQx2BE33L8BOHQkI=
10+
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6/go.mod h1:U6Lno4MTRCDY+Ba7aCcauB9T60gsv5s4ralQzP72ZoQ=
911
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1012
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1113
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

0 commit comments

Comments
 (0)