Skip to content

Works with setup.cfg? #161

Closed Answered by ymyzk
Holt59 asked this question in Q&A
Discussion options

You must be logged in to vote

@Holt59 thanks for reporting the issue. It seems there's a misconfiguration in your setup.cfg.

Here's what I find out. I cloned your repository, checked out packaging branch and run tox command locally. Only py36-lint env was executed. Also, tox -l (show a list of testing) failed.

I checked the tox's documentation and found

Note that setup.cfg requires the content to be under the tox:tox section. pyproject.toml on the other hand is in TOML format.

I made the following change and it seems to have fixed the problem.

index 6d4a94a..ea80b52 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -21,7 +21,7 @@ ignore_missing_imports = True
 [mypy-pytest.*]
 ignore_missing_imports = True
 
-[tox]
+[tox:tox]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ymyzk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9 on April 05, 2023 14:05.