changelogs.md


neutrinoceros/inifix

Repository  -  API  -  Source

4.4.1

September 19, 2023
  • BLD: drop support for CPython 3.8
  • TST: add support for CPython 3.12
  • DOC: fix a undesired asymmetry in usage example
  • DEP: drop more-itertools as a dependency

4.4.0

May 31, 2023
  • DOC: update link to Idefix
  • MNT: migrate to src layout

4.3.2

March 11, 2023

BUG: fix type casting bugs affecting integers and strings

4.3.1

March 10, 2023

PERF: speedup parsing (take 3) This version is overall ~3x faster than inifix 4.1.0, and ~15% faster than inifix 4.3.0

4.3.0

March 10, 2023
  • ENH: implement --skip-validation for inifix-format CLI
  • DOC: improve documentation for pre-commit hooks and validation-skipping options

4.2.2

March 9, 2023

PERF: optimize parsing speed (reduce reading overhead by an additional 5%)

4.2.1

March 9, 2023

BUG: fix a regression (in 4.2.0) where signed floats were interpreted as strings

4.2.0

March 8, 2023

PERF: optimize parsing speed (reduce reading overhead by 60%)

4.1.0

February 6, 2023
  • ENH: allow skipping validation in IO operations
  • ENH: allow special character '.' in parameter names

4.0.0

January 30, 2023

TST: use requirement files instead of optional dependencies for tests and type checking

Installing with extra targets ([test] and [typecheck]) isn't supported anymore.

3.1.0

January 8, 2023
  • ENH: optimize startup time
  • ENH: add option to load scalars as single-element lists

3.0.0

May 24, 2022

This release contains a small, yet breaking change: in previous versions of inifix, t and f were read as booleans. This feature was never documented and was never supported in Idefix. Meanwhile, Idefix (dev) now supports reading yes and no as booleans, so inifix will now also automatically parse these special strings to booleans.

2.3.0

May 1, 2022

ENH: add support for binary IO

All internal IO operations are now performed in binary mode whenever possible, assuming UTF-8 encoding.

2.2.1

April 30, 2022

BUG: fix a regression (inifix 2.2.0) where inifix.dump was able to write to a file even if user doesn't have permission to.

2.2.0

April 29, 2022
  • BUG: fix a critical bug in parsing lines with interleaved quoted strings and other types
  • BUG: fix casting for numeric str
  • ENH: file writing operations are now atomic

2.1.2

April 28, 2022
  • BUG: fix a bug where formatting would affect spacing within quoted str values
  • BUG: fix a bug where strings containing spacing would be dumped without correct quotes, making them appear as multiple separate values
  • BUG: fix a bug where special strings 'true', 't', 'false' and 'f' would decay to boolean after two parsing cycles
  • BUG: fix import * for inifix.io (add loads and dumps)

2.1.1

April 27, 2022

BUG: fix a bug where string values containing whitespaces would incorrectly be splitted

2.1.0

April 25, 2022

inifix-format now won't report noop by default when files are already formatted. It can be turned on again with the --report-noop flag. This makes the associated pre-commit hook much less verbose.

2.0.0

April 17, 2022

The format enforced by inifix-format was changed to improve compacity and readability. The new format is designed to be closer to manual formatting that is actually perfomed by Idefix users and contributors.

This is considered a major version change because the --name-column-size CLI flag and its corresponding keyword argument from inifix.format.iniformat were removed.

The API is otherwize identical to version 1.2.1

1.2.1

April 9, 2022

BUG: fix section invalidation

1.2.0

March 18, 2022
  • ENH: add two functions to the public API to read from and write to strings (inifix.loads and inifix.dumps)
  • BUG: use more conservative rules in int/float casting rules to better match Idefix's reading routines.

1.1.0

February 23, 2022

ENH: inifix-format now produces more compact files, with fewer empty lines. PR #98

1.0.3

February 10, 2022

BUG: don't try to be clever with cumulative retcodes to avoid retcode overflow PR #97

1.0.2

January 30, 2022

TYP: add py.typed marker file to improve downstream type-checking PR #94

1.0.1

January 30, 2022

TYP: improve type-correctness PR #93

1.0.0

January 15, 2022

The API is now declared stable and any future intentionally breaking change will follow a deprecation cycle.

  • DEPR: drop support for Python 3.6 and 3.7, inifix now requires Python 3.8 or newer
  • DEPR: end deprecation cycle for function arguments marked as "future-potisional-only"
  • ENH: simplify internal logic (remove a non-user facing class, InifixConf)
  • TYP: add mypy conf, add missing type annotations

PR #91

0.11.2

January 5, 2022

BUG: fix formatting for files with only sections and comments (no parameters) PR #90

0.11.1

January 4, 2022

BUG: pretty print warnings from iniformat so they don't look as bad from the CLI PR #89

0.11.0

January 4, 2022

ENH: replace --inplace option in inifix-format with a --diff option PR #87

0.10.0

November 23, 2021
  • ENH: expose name column length parameter to users in inifix-format PR #73
  • BUG: fix formatter behaviour PR #83

0.9.1

November 21, 2021

BUG: fix a bug in str casting PR #80

0.9.0

October 28, 2021

ENH: improve schema validation and add a file validation pre-commit hook PR #74

0.8.0

October 26, 2021

This version is identical to 0.7.0 except that FutureWarnings are now raised for api calls using future positional-only arguments using the keyword syntax.

0.7.0

October 26, 2021

This version is identical to 0.6.0 except that it's compatibly for Python 3.6 to 3.10. Positional-only arguments are not specified any more because their are not available for Python versions earlier than 3.8 Warnings may be added in a following version to discourage usage of keyword syntax for these arguments.