Skip to content

Commit

Permalink
Switch toml TOML library for tomli
Browse files Browse the repository at this point in the history
toml unfortunately has a lack of maintainership issue right now. It's
evident by the fact toml only supports TOML v0.5.0. TOML v1.0.0 has
been recently released and right now Black crashes hard on its usage.

tomli is a brand new parse only TOML library. It supports TOML
v1.0.0. Although TBH we're switching to this one mostly because
pip is doing the same.

*The upper bound was included at the library maintainer's request.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 12, 2021
1 parent c64fb8c commit ec56588
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 201 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -4,6 +4,8 @@

### _Black_

- Configuration files using TOML features higher than spec v0.5.0 are now supported
(#2301)
- Add primer support and test for code piped into black via STDIN (#2315)
- Fix internal error when `FORCE_OPTIONAL_PARENTHESES` feature is enabled (#2332)
- Accept empty stdin (#2346)
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Expand Up @@ -32,7 +32,7 @@ click = ">=8.0.0"
mypy_extensions = ">=0.4.3"
pathspec = ">=0.8.1"
regex = ">=2020.1.8"
toml = ">=0.10.1"
tomli = ">=0.2.6, <2.0.0"
typed-ast = "==1.4.2"
typing_extensions = {"python_version <" = "3.8","version >=" = "3.7.4"}
black = {editable = true,extras = ["d"],path = "."}
Expand Down

0 comments on commit ec56588

Please sign in to comment.