diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2e3608..1bd4607 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,34 +14,34 @@ jobs: archives: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: jpetrucciani/archives-check@main with: path: 'gamble/' mypy: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: jpetrucciani/mypy-check@master black: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: jpetrucciani/black-check@master ruff: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: jpetrucciani/ruff-check@main tests: runs-on: ubuntu-22.04 needs: [archives, mypy, black, ruff] strategy: matrix: - python-version: ['3.10', '3.11'] + python-version: ['3.10', '3.11', '3.12'] name: python ${{ matrix.python-version }} tests steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup python uses: actions/setup-python@v3 with: diff --git a/default.nix b/default.nix index 294382c..5d45358 100644 --- a/default.nix +++ b/default.nix @@ -1,8 +1,8 @@ { pkgs ? import (fetchTarball { - name = "jpetrucciani-2023-06-26"; - url = "https://github.com/jpetrucciani/nix/archive/cfbb79b2245dcc3d06f6bd80892d346363a8b9e5.tar.gz"; - sha256 = "15wa55yhmv3hfsx29zabg6q5sqy9y3xrxy7w0dlrzfpkpy6xk56n"; + name = "jpetrucciani-2023-10-17"; + url = "https://github.com/jpetrucciani/nix/archive/d944b2ed0e17f5e8e12332d21d226038ccb77ccb.tar.gz"; + sha256 = "0dzcqs7614pd0z0n17d3y6n6w1snk0x54pj8m740w4657i538g7s"; }) { } }: diff --git a/gamble/models/dice.py b/gamble/models/dice.py index bdf0005..7973591 100644 --- a/gamble/models/dice.py +++ b/gamble/models/dice.py @@ -256,7 +256,7 @@ def roll_many(self, num_rolls: int = 2) -> list[int]: @arg num_rolls: the number of times to roll the dice @ret list of values rolled by these dice """ - return [self.roll() for _ in range(0, num_rolls)] + return [self.roll() for _ in range(num_rolls)] def max_of(self, num_rolls: int = 2) -> tuple[int, list[int]]: """ diff --git a/pyproject.toml b/pyproject.toml index f76195d..a40f7c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers=[ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "License :: OSI Approved :: MIT License", @@ -34,7 +35,7 @@ target-version = ["py311"] line-length = 100 select = ["A", "ANN", "ARG", "B", "C4", "D", "E", "F", "ICN", "ISC", "N", "PD", "PGH", "PLR", "PLW", "PIE", "PT", "Q", "RET", "RUF", "S", "SIM", "TID", "UP", "W", "YTT"] ignore = ["A001", "A003", "ANN101", "ANN102", "ANN401", "B008", "B019", "C405", "D200", "D203", "D205", "D212", "D400", "D403", "D404", "D415", "E501", "N818", "PGH003", "PGH004", "PLR2004", "PT012", "S101", "S105", "S108", "S311", "W605"] -target-version = "py310" +target-version = "py311" exclude = [ ".direnv", ".git", diff --git a/tox.ini b/tox.ini index e01eb2b..df54543 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39,py310,py311 +envlist = py310,py311,py312 [testenv] deps =