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

Fail to specify max_line_length via pyproject.toml #241

Open
martin-greentrax opened this issue Apr 3, 2023 · 1 comment
Open

Fail to specify max_line_length via pyproject.toml #241

martin-greentrax opened this issue Apr 3, 2023 · 1 comment

Comments

@martin-greentrax
Copy link

I'm using version 8.4.1 and have copied the configuration from the documentation to pyproject.toml:

> cat pyproject.toml
[tool.pylama.linter.pycodestyle]
max_line_length = 120

[tool.pylama.linter.pylint]
max_line_length = 120

I do not have another config file e.g. pylama.ini
But when I call pylama it still has a max_line_length of 100 and not 120:

> pylama -v foo

Namespace(paths=['foo'], verbose=True, options=None, linters=['pyflakes', 'mccabe', 'pycodestyle'], from_stdin=False, concurrent=False, format='pycodestyle', abspath=False, max_line_length=100, select=set(), ignore=set(), skip=[], sort=None, report=None, hook=False, max_complexity=10, pydocstyle_convention=None, file_params={}, linters_params={})

Only if I call it like this it gets set to 120:

> pylama -v --max-line-length=120 foo

Namespace(paths=['foo'], verbose=True, options=None, linters=['mccabe', 'pyflakes', 'pycodestyle'], from_stdin=False, concurrent=False, format='pycodestyle', abspath=False, max_line_length=120, select=set(), ignore=set(), skip=[], sort=None, report=None, hook=False, max_complexity=10, pydocstyle_convention=None, file_params={}, linters_params={})

Where am I going wrong?

@ghostishev
Copy link

It doesn't work via pre-commit, but works directly.

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