Skip to content

Commit

Permalink
bump dev deps to latests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 22, 2024
1 parent eebb049 commit 1b60afc
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 95 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: CI

on:
push:
branches:
- master
branches: [master]
pull_request:
workflow_dispatch:

Expand All @@ -13,13 +12,11 @@ concurrency:

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -33,15 +30,12 @@ jobs:
config: ".markdownlint.yaml"
globs: "*.md"

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- uses: astral-sh/setup-uv@v5

- name: uv sync
run: >
uv sync
--frozen
--locked
--python 3.11
--no-group debug
--no-group docs
Expand All @@ -63,27 +57,19 @@ jobs:
uv run basedpyright --ignoreexternal --verifytypes lmo
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 20

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.13"]
pandas: ["--no-group pandas", ""]
exclude:
- python-version: "3.13"
pandas: "with"

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: setup uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- uses: astral-sh/setup-uv@v5

- name: setup python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ repos:
- id: codespell

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand All @@ -78,7 +78,7 @@ repos:
hooks:
- id: basedpyright
name: basedpyright
entry: uv run basedpyright --threads=3
entry: uv run basedpyright
language: system
types_or: [python, pyi]

Expand Down
4 changes: 3 additions & 1 deletion lmo/distributions/_kumaraswamy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@


# pyright: reportIncompatibleMethodOverride=false
# pyright: reportUnusedFunction=false


@final
class kumaraswamy_gen(lmt.rv_continuous):
# https://wikipedia.org/wiki/Kumaraswamy_distribution

@override
def _argcheck(self, /, a: float, b: float) -> bool | np.bool_:
return (a > 0) & (b > 0)
Expand Down Expand Up @@ -77,7 +80,6 @@ def _ppf(self, /, q: _XT, a: float, b: float) -> _XT:
return (1 - (1 - q) ** (1 / b)) ** (1 / a) # pyright: ignore[reportReturnType]

def _entropy(self, a: float, b: float) -> float:
# https://wikipedia.org/wiki/Kumaraswamy_distribution
return (1 - 1 / b) + (1 - 1 / a) * harmonic(b) - math.log(a * b)

@override
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ Funding = "https://github.com/sponsors/jorenham"

[dependency-groups]
debug = [
"ipython>=8.30.0",
"ipython>=8.31.0",
"ipykernel>=6.29.5",
"line_profiler>=4.2.0",
"matplotlib>=3.9.3",
"matplotlib>=3.10.0",
"typing-extensions>=4.12.2",
]
docs = [
Expand All @@ -65,7 +65,7 @@ docs = [
"mkdocs-git-revision-date-localized-plugin>=1.3.0",
"mkdocs-include-markdown-plugin>=7.1.2",
"mkdocs-jupyter>=0.25.1",
"mkdocs-material>=9.5.47",
"mkdocs-material>=9.5.49",
"mkdocs-minify-plugin>=0.8.0",
"mkdocstrings[python]>=0.27.0",
]
Expand All @@ -76,12 +76,12 @@ pandas = [
dev = [
"blacken-docs>=1.19.1",
"codespell>=2.3.0",
"hypothesis[numpy]>=6.122.1",
"hypothesis[numpy]>=6.122.6",
"pre-commit>=4.0.1",
"basedpyright>=1.22.0",
"basedpyright>=1.23.1",
"pytest>=8.3.4",
"pytest-doctestplus>=1.3.0",
"ruff>=0.8.1",
"ruff>=0.8.4",
"sp-repo-review[cli]>=2024.8.19",
"tox>=4.23.2",
]
Expand Down
Loading

0 comments on commit 1b60afc

Please sign in to comment.