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

--config flag doesn't work with pyproject.toml file #990

Closed
hasansezertasan opened this issue Feb 6, 2024 · 3 comments
Closed

--config flag doesn't work with pyproject.toml file #990

hasansezertasan opened this issue Feb 6, 2024 · 3 comments

Comments

@hasansezertasan
Copy link

Hi everyone 👋. Thanks for the great effort 🦾!

I have started to use the pymarkdown today and quite enjoying it! However, I noticed a problem while including it in pre-commit hooks.

The pymarkdown scan . ./docs command reads the configuration from the pyproject.toml file but pymarkdown --config=pyproject.toml scan . ./docs doesn't do that and it raises this error:

Specified configuration file 'pyproject.toml' was not parseable as a JSON file or a YAML file.
Specified configuration file 'pyproject.toml' was not parseable as a JSON file or a YAML file.


Specified configuration file 'pyproject.toml' was not parseable as a JSON file or a YAML file.

Yep, same sentence three times.

Here is my pyproject.toml content:

[tool.pymarkdown]
plugins.MD013.enabled = false
plugins.MD003.style = "atx"
plugins.MD004.style = "asterisk"
plugins.MD007.indent = 4
plugins.MD033.enabled = false
plugins.MD041.enabled = false
plugins.MD022.enabled = false

python = ">=3.8,<4.0" and pymarkdownlnt = "^0.9.16".

@jackdewinter
Copy link
Owner

Well, the first two instances of it being shown are log entries, the last one being the actual error.

@jackdewinter
Copy link
Owner

will be in the next release

@hasansezertasan
Copy link
Author

I see, thanks for answering. Looking forward to seeing the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants