Comments (6)
Odd. My version shows I have 0.6.3 installed, but I just tried cloning from github and doing the following:
python autopep8/autopep8.py over_80_char.py
Now the output gives the following valid:
mydict['longkey']['key2'][
'longkey3'] = 'my long string goes here that goes well past line 80'
My other issue of ignores not working seems to be solved when cloning and calling directly as well, so it seems that there is some sort of dichotomy here that has either been solved between the official release and github, or some difference between the command line version and when calling directly.
from autopep8.
Okay, trying to narrow this down further, I ran the commands from the autopep8.py file in my site-packages directory and am still getting the same issue.
from autopep8.
This appears to simply be an issue with the version in pip being broken versus the current state of the code in the repo. I'm not really familiar with how updating packages in pip works, as well as who should close an issue and when, so I will leave this open.
If anyone could enlighten me on how these two processes generally function I'd appreciate it. I'd like to contribute to open source more, and I think it would be helpful to know how these things are best done.
from autopep8.
I've confirm your findings about 0.6.3.
I made some stylistic improvements to the line shortening algorithm. But I don't recall fixing anything. I'll compare with 0.6.3 to see what exactly changed.
from autopep8.
It looks like I did fix it. The code previously didn't fully check for syntax problems before breaking the line. We need to upgrade the version on PyPi.
@hhatto, could you bump the version? Thanks.
from autopep8.
version 0.6.4 has been released.
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 2
- Should be able to run autopep8 independently of global pycodestyle config
- Some messages written to stdout instead of stderr HOT 1
- --max-line-length not working.
- ModuleNotFoundError: No module named 'lib2to3' (python3.12) HOT 2
- How to ignore the two-spaces-before-comment rule ? HOT 1
- Dismatch between autopep8 and pep8? HOT 1
- 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 HOT 1
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.