Open martin-greentrax opened 1 year ago
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?
It doesn't work via pre-commit, but works directly.
pre-commit
I'm using version 8.4.1 and have copied the configuration from the documentation to pyproject.toml:
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?