Skip to content

Documentation for Excluding #498

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

Closed
RNKuhns opened this issue Aug 24, 2023 · 2 comments · Fixed by #552
Closed

Documentation for Excluding #498

RNKuhns opened this issue Aug 24, 2023 · 2 comments · Fixed by #552

Comments

@RNKuhns
Copy link

RNKuhns commented Aug 24, 2023

Found a potential bug. I'm noticing the following pattern for excluding a method as shown in docs is generating a malformed toml error:

exclude = [
    "\.__init__$",
]

But if I use the following it is working.

exclude = [
    "__init__$",
]

Is that happening for anyone else?

@RNKuhns
Copy link
Author

RNKuhns commented Aug 24, 2023

Note that this may be related to how toml handles single and double quoted strings differently.

@stefmolin
Copy link
Contributor

You are correct this is due to the difference between single and double quotes in TOML. If you want to use a regular expression, you must use single quotes.

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

Successfully merging a pull request may close this issue.

2 participants