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

Ignore Settings for W292 Do Not Work #607

Closed
jordanyaker opened this issue Aug 13, 2021 · 0 comments · Fixed by #608
Closed

Ignore Settings for W292 Do Not Work #607

jordanyaker opened this issue Aug 13, 2021 · 0 comments · Fixed by #608
Assignees
Milestone

Comments

@jordanyaker
Copy link

When attempting to disable formatting for W292, autopep8 does not follow the ignore settings provided by any vector.

Python Code

test.py

def fn():
    pass

Command Line and Configuration

setup.cfg

[pycodestyle]
select =
ignore = W292```

Command Line
```shell
$ python3 -m autopep8 --diff test.py -v
enable config: section=pycodestyle, key=select, value=
enable config: section=pycodestyle, key=ignore, value=W292
[file:test.py]
--->  Applying global fix for E265
--->  0 issue(s) to fix {}
--- original/test.py
+++ fixed/test.py
@@ -1,2 +1,2 @@
 def fn():
-    pass
\ No newline at end of file
+    pass

Your Environment

  • Python version: 3.7.10
  • autopep8 version: 1.5.7
  • Platform: macOSX
@hhatto hhatto self-assigned this Aug 14, 2021
@hhatto hhatto added this to the 1.5.8 milestone Aug 15, 2021
@hhatto hhatto modified the milestones: 1.5.8, 1.6 Oct 21, 2021
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