summaryrefslogtreecommitdiff
path: root/coverage/tomlconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: specialize exceptionsnedbat/exceptionsNed Batchelder2021-11-141-3/+3
| | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better.
* fix: source modules need to be re-imported. #1232Ned Batchelder2021-10-111-1/+5
|
* fix: pretend we didn't import third-party packages we use. #1228Ned Batchelder2021-10-061-5/+2
| | | | | | tomli couldn't use coverage themselves because we imported it early. Cleaning sys.modules means their own imports will actually execute after coverage has started, so their files will be properly measured.
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-281-3/+1
|
* fix: raise chained errors with "from" #998Ned Batchelder2021-07-201-4/+4
| | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred."
* Support TOML v1.0.0 syntax in `pyproject.toml` (#1186)Thomas Grainger2021-07-131-6/+6
| | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+2
|
* build: update to latest pylintgood-metaNed Batchelder2021-05-021-1/+0
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-3/+1
|
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-4/+3
|
* refactor: remove unneeded backward.py shimsNed Batchelder2021-05-011-2/+2
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-181-2/+6
|
* Consolidate the type checking of toml valuesNed Batchelder2019-11-041-22/+12
|
* Refactor the toml logicNed Batchelder2019-11-041-77/+82
| | | | | | | | | - Section names can be dotted. - We only ever read one file, so we don't need to loop over files. - Error messages should show the actual section names where problems happened.
* Give warnings about not being able to parse TOML files if toml isn't installedNed Batchelder2019-11-031-19/+28
|
* A better way to import optional modulesNed Batchelder2019-11-031-1/+2
|
* Expand environment variables in any part of a TOML configNed Batchelder2019-11-031-7/+4
|
* Cleanups for TOML codeNed Batchelder2019-11-031-4/+20
|
* TOML support for pyproject.toml and other config filesFrazer McLean2019-11-031-0/+146
Squashed and rebased from https://github.com/nedbat/coveragepy/pull/699 Missing getfloat TOMLConfigParser -> TomlConfigParser fix getfloat for int Move TomlConfigParser Add name to contributors Import toml in backward.py fix indentation Don't ignore TomlDecodeError Raise if TomlConfigParser is used without toml installed Add tests for TOML config Fix test on Python 2 Mention toml support in documentation.