Comments (1)
It works fine in my environment.
If I change the --ignore
option to "E26,E301,E302,E303,E305"
instead of [E26,E301,E302,E303,E305]
, does it not work? I think you don't need the []
brackets.
$ pycodestyle --version
2.11.1
$ autopep8 --version
autopep8 1.6.0 (pycodestyle: 2.8.0)
$ python -V
Python 3.11.6
$ cat example.py
class CardinalVote(VotingMethod):
__slots__ = ("grades",) # the number of different grades, >1
return_format = results_format.SCORES
name = "Score Vote"
$ pycodestyle example.py
example.py:2:28: E261 at least two spaces before inline comment
$ pycodestyle --ignore=E26,E301,E302,E303,E305 example.py
$ autopep8 -d example.py
--- original/example.py
+++ fixed/example.py
@@ -1,4 +1,4 @@
class CardinalVote(VotingMethod):
- __slots__ = ("grades",) # the number of different grades, >1
+ __slots__ = ("grades",) # the number of different grades, >1
return_format = results_format.SCORES
name = "Score Vote"
$ autopep8 --ignore=E26,E301,E302,E303,E305 -d example.py
$ autopep8 --ignore="[E26,E301,E302,E303,E305]" -d example.py
--- original/example.py
+++ fixed/example.py
@@ -1,4 +1,4 @@
class CardinalVote(VotingMethod):
- __slots__ = ("grades",) # the number of different grades, >1
+ __slots__ = ("grades",) # the number of different grades, >1
return_format = results_format.SCORES
name = "Score Vote"
from autopep8.
Related Issues (20)
- sdist is missing test/acid.py
- Exclude Regex is not working for formatOnSave with vscode autopep8 extension
- migrate to pyproject.toml
- missing dependency on `packaging` HOT 1
- Test failures with Python 3.12 HOT 2
- Pyproject.toml is ignored if ~/.config/pycodestyle have select key filled
- Account for whitespace-only separation of flake8 error selectors/ignores
- Problem with formatting f-strings on python3.12 HOT 20
- Argument parser errors are printed without a trailing newline HOT 1
- Should be able to run autopep8 independently of global pycodestyle config
- Some messages written to stdout instead of stderr
- --max-line-length not working.
- ModuleNotFoundError: No module named 'lib2to3' (python3.12) HOT 2
- Dismatch between autopep8 and pep8?
- Comments are always formatted at 80 characters maximum
- autopep8 line length not working with async def function
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- Please delete this useless lib
- Inserting newlines into triple-quoted f-strings on Python 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopep8.