Skip to content

Update iniconfig to 2.3.1 - #778

Open
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-iniconfig-2.0.0-to-2.3.1
Open

pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-iniconfig-2.0.0-to-2.3.1

Conversation

@pyup-bot

@pyup-bot pyup-bot commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

This PR updates iniconfig from 2.0.0 to 2.3.1.

Changelog

2.3.1

=====

* fix quadratic parse time for values with many continuation lines (78, regarding 77)
* strip a leading UTF-8 BOM when reading INI files, which previously raised ``ParseError`` (76)
* internal: ``iniconfig._parse.ParsedLine.value`` is now a list of lines

2.3.0

=====

* add IniConfig.parse() classmethod with strip_inline_comments parameter (fixes 55)
- by default (strip_inline_comments=True), inline comments are properly stripped from values
- set strip_inline_comments=False to preserve old behavior if needed
* IniConfig() constructor maintains backward compatibility (does not strip inline comments)
* users should migrate to IniConfig.parse() for correct comment handling
* add strip_section_whitespace parameter to IniConfig.parse() (regarding 4)
- opt-in parameter to strip Unicode whitespace from section names
- when True, strips Unicode whitespace (U+00A0, U+2000, U+3000, etc.) from section names
- when False (default), preserves existing behavior for backward compatibility
* clarify Unicode whitespace handling (regarding 4)
- since iniconfig 2.0.0 (Python 3 only), all strings are Unicode by default
- Python 3's str.strip() has handled Unicode whitespace since Python 3.0 (2008)
- iniconfig automatically benefits from this in all supported versions (Python >= 3.10)
- key names and values have Unicode whitespace properly stripped using Python's built-in methods

2.2.0

=====

* drop Python 3.8 and 3.9 support (now requires Python >= 3.10)
* add Python 3.14 classifier
* migrate from hatchling to setuptools 77 with setuptools_scm
* adopt PEP 639 license specifiers and PEP 740 build attestations
* migrate from black + pyupgrade to ruff
* migrate CI to uv and unified test workflow
* automate GitHub releases and PyPI publishing via Trusted Publishing
* include tests in sdist
* modernize code for Python 3.10+ (remove __future__ annotations, TYPE_CHECKING guards)
* rename _ParsedLine to ParsedLine

2.1.0

=====

* fix artifact building - pin minimal version of hatch
* drop eol python 3.8
* add python 3.12 and 3.13
Links

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5f02dc7) to head (57988cb).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #778   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          126       126           
=========================================
  Hits           126       126           
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant