Skip to content

Update packages #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/2018.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
strategy:
matrix:
python-version:
- pypy-2.7
- pypy-3.7
- '3.11'
- 'pypy-3.11'
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -38,11 +38,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -r requirements.txt

- name: Lint with pylint
run: pylint ./day*/
if: ${{ !contains(matrix.python-version, '2.' )}}

- name: Test with pytest
run: pytest
run: pytest -n auto
if: ${{ !contains(matrix.python-version, 'pypy' )}}

- name: Test with pytest (slow)
run: pytest -n auto --slow
if: ${{ contains(matrix.python-version, 'pypy' )}}
457 changes: 239 additions & 218 deletions 2017/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2017/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"eslint": "^9.9.1",
"globals": "^15.9.0",
"globals": "^16.1.0",
"jest": "^29.4.1"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions 2018/day21/test_day21.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

from os import path
import pytest
from .day21 import run_part1, run_part2

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


@pytest.mark.slow
def test_part2():
"""Tests for Part 2."""
with open(_INPUT_FILE, 'r') as input_file:
Expand Down
2 changes: 1 addition & 1 deletion 2018/day24/day24.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Group: # pylint: disable=too-many-instance-attributes
"""Represents a single group of attackers."""

def __init__(self, team_name, unit_count, hit_points, attack_damage, attack_type, initiative): # pylint: disable=too-many-arguments
def __init__(self, team_name, unit_count, hit_points, attack_damage, attack_type, initiative): # pylint: disable=too-many-arguments,too-many-positional-arguments
self.team_name = team_name
self._unit_count = unit_count
self._hit_points = hit_points
Expand Down
2 changes: 2 additions & 0 deletions 2018/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
pylint
pytest
pytest-skip-slow
pytest-xdist
12 changes: 12 additions & 0 deletions 2018/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

if [[ "$1" == "test" ]]; then
pytest -n auto
elif [[ "$1" == "lint" ]]; then
pylint day*
else
echo "Usage: $0 [test|lint]"
exit 1
fi
6 changes: 4 additions & 2 deletions 2020/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module github.com/kfarnung/advent-of-code/2020

go 1.18
go 1.23.0

require github.com/stretchr/testify v1.8.4
toolchain go1.24.3

require github.com/stretchr/testify v1.10.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions 2020/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
2 changes: 1 addition & 1 deletion 2023/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
6 changes: 4 additions & 2 deletions 2024/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module github.com/kfarnung/advent-of-code/2024

go 1.23
go 1.23.0

toolchain go1.24.3

require (
github.com/stretchr/testify v1.10.0
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6
)

require (
Expand Down
2 changes: 2 additions & 0 deletions 2024/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo=
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak=
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 h1:y5zboxd6LQAqYIhHnB48p0ByQ/GnQx2BE33L8BOHQkI=
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6/go.mod h1:U6Lno4MTRCDY+Ba7aCcauB9T60gsv5s4ralQzP72ZoQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down