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

Pyproject.toml is ignored if ~/.config/pycodestyle have select key filled #707

Open
actionless opened this issue Sep 15, 2023 · 0 comments
Assignees

Comments

@actionless
Copy link

Command Line

$ cat ~/.config/pycodestyle
[pycodestyle]
select = E1
max-line-length = 160

$ autopep8 --ignore="" --verbose --in-place ./oomox_gui/colors_list.py
read config path: /home/lie/.config/pycodestyle
read config path: /home/lie/projects/oomox/.flake8
enable config: section=pycodestyle, key=select, value=E1
enable config: section=pycodestyle, key=max-line-length, value=160
enable config: section=flake8, key=max-line-length, value=120
enable config: section=flake8, key=ignore, value=F811,W503,W504
[file:./oomox_gui/colors_list.py]
--->  0 issue(s) to fix {}
 
$ vim ~/.config/pycodestyle

$ cat ~/.config/pycodestyle
[pycodestyle]
#select = E1
max-line-length = 160

$ autopep8 --ignore="" --verbose --in-place ./oomox_gui/colors_list.py
read config path: /home/lie/.config/pycodestyle
read config path: /home/lie/projects/oomox/.flake8
enable config: section=pycodestyle, key=max-line-length, value=160
enable config: section=flake8, key=max-line-length, value=120
enable config: section=flake8, key=ignore, value=F811,W503,W504
enable pyproject.toml config: key=max_line_length, value=120
enable pyproject.toml config: key=select, value=*
enable pyproject.toml config: key=ignore, value=
[file:./oomox_gui/colors_list.py]
--->  0 issue(s) to fix {}

Your Environment

  • Python version: 3.11
  • autopep8 version: autopep8 2.0.2 (pycodestyle: 2.11.0)
  • Platform: arch linux btw
@hhatto hhatto self-assigned this Oct 8, 2023
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