From 5b21322df84778c00eb7380a0aea5505b165a692 Mon Sep 17 00:00:00 2001 From: top-on Date: Thu, 12 Dec 2024 22:56:46 +0100 Subject: [PATCH] replace 37c3 with 38c3 --- .pre-commit-config.yaml | 24 ++++++++---------------- CHANGELOG.md | 4 ++++ README.md | 5 ++++- optimal_congress/cli.py | 5 +++-- optimal_congress/io/cache.py | 1 - pyproject.toml | 6 +++--- 6 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87d6df3..f66ab7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,22 +9,14 @@ repos: args: [--fix=auto] - id: trailing-whitespace - id: check-added-large-files - - repo: local + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.3 # keep in sync with pyproject.toml hooks: - id: ruff - name: ruff - entry: ruff - language: system - require_serial: true - types: [python] + args: [--fix] + - id: ruff-format + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.13.0 # keep in sync with pyproject.toml + hooks: - id: mypy - name: mypy - entry: mypy - language: system - require_serial: true - types: [python] - - id: pytest - name: pytest - entry: pytest tests/ - language: system - types: [python] + additional_dependencies: [types-requests~=2.32, types-pytz~=2024.2] diff --git a/CHANGELOG.md b/CHANGELOG.md index c7cb5e2..792dcba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2024-12-12 +### Fixed +- Replace 37c3 with 38c3 + ## [1.0.1] - 2024-12-12 ### Fixed - Update README diff --git a/README.md b/README.md index aed9980..f5555ab 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ $ optimal-congress -h Usage: optimal-congress [OPTIONS] COMMAND [ARGS]... - Optimize your personal schedule for the 37c3. + Optimize your personal schedule for the 38c3. ╭─ Options ────────────────────────────────────────────────────────────────────────────╮ │ --verbose -v Include debug messages in output. │ @@ -112,6 +112,9 @@ poetry run tox ## Long-term Roadmap +- add github action for pytest, ruff, and mypy +- add latest UI examples to README +- use rich table for `next` view - output more/all information with associated events (see [feature request](https://github.com/top-on/optimal-congress/issues/3) and [example](https://www.willmcgugan.com/blog/tech/post/real-working-hyperlinks-in-the-terminal-with-rich/) for more compact hyperlinks with `rich`) - change rating scheme, to minimize effort and maximize flexibility (see [feature request](https://github.com/top-on/optimal-congress/issues/4)),
e.g. by first marking favorites, and only requiring relative ratings for conflicting favorites diff --git a/optimal_congress/cli.py b/optimal_congress/cli.py index 7c68b96..8662cbf 100644 --- a/optimal_congress/cli.py +++ b/optimal_congress/cli.py @@ -1,4 +1,5 @@ -"""Main entry point for the 37c3 schedule optimizer.""" +"""Main entry point for the schedule optimizer.""" + # %% import logging import os @@ -47,7 +48,7 @@ def users_callback( help="Include debug messages in output.", ), ) -> None: - """Optimize your personal schedule for the 37c3.""" + """Optimize your personal schedule for the 38c3.""" # set log level log_level = logging.DEBUG if verbose else logging.INFO logging.basicConfig(level=log_level, format="%(message)s") diff --git a/optimal_congress/io/cache.py b/optimal_congress/io/cache.py index be454ee..f1294c5 100644 --- a/optimal_congress/io/cache.py +++ b/optimal_congress/io/cache.py @@ -1,6 +1,5 @@ """IO operations on local cache.""" - import json from optimal_congress.config import ( diff --git a/pyproject.toml b/pyproject.toml index a16b7d0..36c5e42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ homepage = "https://github.com/top-on/optimal-congress" name = "optimal-congress" packages = [{include = "optimal_congress"}] readme = "README.md" -version = "1.0.1" +version = "1.0.2" [tool.poetry.dependencies] pandas = "^2.2.3" @@ -21,9 +21,9 @@ typer = {extras = ["all"], version = "^0.15.1"}# extras include rich ipykernel = "^6.29.5" notebook = "^7.0.7" # linting -mypy = "^1.13.0" +mypy = "1.13.0" # keep in sync with .pre-commit-config.yaml pre-commit = "^4.0.1" -ruff = "^0.8.3" +ruff = "0.8.3" # keep in sync with .pre-commit-config.yaml # testing pytest = "^7.4.3" tox = "^4.11.4"