Skip to content

Commit b742ac3

Browse files
committed
Release v0.1.9: Fix OutputFormat casefold AttributeError with string-based enum
1 parent 30316a8 commit b742ac3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.9] - 2025-07-14
9+
10+
### Fixed
11+
- Fixed `AttributeError: 'OutputFormat' object has no attribute 'casefold'` when using `--format` flag with case-insensitive options
12+
- Changed `OutputFormat` enum to inherit from `str` to support typer's case-insensitive string processing
13+
814
## [0.1.8] - 2025-07-14
915

1016
### Added

codeanalyzer/config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from enum import Enum
22

33

4-
class OutputFormat(Enum):
5-
"""Enum-like class for output formats."""
4+
class OutputFormat(str, Enum):
5+
"""String-based enum for output formats to support typer case-insensitive options."""
66

77
JSON = "json"
88
MSGPACK = "msgpack"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "codeanalyzer-python"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "Static Analysis on Python source code using Jedi, CodeQL and Treesitter."
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)