Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration is undocumented #32

Open
scottj97 opened this issue Feb 25, 2019 · 3 comments
Open

Configuration is undocumented #32

scottj97 opened this issue Feb 25, 2019 · 3 comments

Comments

@scottj97
Copy link
Contributor

The Configuration section of the README currently says "TODO", and the command tidypy default-config doesn't even tell me what filename to use for the config it prints to stdout.

How do I make a config file for tidypy? At least document the filename it's looking for.

@scottj97
Copy link
Contributor Author

There's two things I'm trying to do, and it seems that anyone running tidypy through pytest will need to do the same. (1) exclude .pytest_cache, and (2) disable one or the other of pydocstyle:D212 or pydocstyle:D213 since they are mutually exclusive.

I got item (1) working eventually, but item (2) is still unsolved.

My pyproject.toml looks like so:

[tool.tidypy]
exclude = ["\\.pytest_cache/.*"]

[pydocstyle]
disabled = ["D213"]

Though I've tried many other things. D213 is still failing when I run tidypy, so this disabled flag is not getting recognized.

@scottj97
Copy link
Contributor Author

Figured it out:

[tool.tidypy]
exclude = ["\\.pytest_cache/.*"]

[tool.tidypy.pydocstyle]
disabled = ["D213"]

This should be documented somewhere as an example pyproject.toml file.

@jayclassless
Copy link
Owner

Absolutely agree. That topic needs more documentation.

Anyone else stumbling upon this in the meantime can look at the pyproject.toml at the root of this repository for an example of how TidyPy is configured to operate on itself.

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

No branches or pull requests

2 participants