Comments (5)
In GitLab by @sigmavirus24 on Jan 11, 2015, 07:56
So this actually belongs on pep8 because the work to allow long URLs to be skipped was done there and anything like this would need to be implemented there as well.
I'm not going to close this because I'm actually fairly familiar with reST formatted tables (and affordances they allow). I wonder if you could show me the comments in question because I may have suggestions that will allow you to avoid waiting for a new pep8 release to fix this.
from flake8.
In GitLab by @sigmavirus24 on Jan 11, 2015, 10:33
So, let me leave one other thought. If this does end up needing work in pep8, the only way to support ignoring the long-line limit inside comments only will be by splitting out the error code that is currently used so that one covers only comments that are long lines and then you can use --ignore=EXYZ
to ignore it project wide.
from flake8.
In GitLab by @harlowja on Jan 11, 2015, 14:41
An example that I sort of had to hack up to get it to pass:
https://review.openstack.org/#/c/146287/2/taskflow/engines/action_engine/engine.py
The options supported there are nice to show in table form:
I had to use the tricky replacement stuff to make some of it fit; which is why I'd be nice to just tell flake8/pep8 to be quiet about long comments (but long lines outside of comments are ok to complain/warn about). If there was such a EXYZ then I'd be using that but it seems there is just long-lines and no differentiation at the current time (so I'd have to turn it off everywhere, which isn't so desirable either).
from flake8.
In GitLab by @sigmavirus24 on Jan 12, 2015, 06:44
Right, so in those cases you can do something like this (and docutils does the right thing in my recollection):
============= =============================
String (case Executor used
insensitive)
============= =============================
``process`` :class:`~.executor.
ParallelProcessTaskExecutor`
============= =============================
It may not be super elegant, but it does work really well. It's a simple way to cheat, especially for doc-strings.
If there was such a EXYZ then I'd be using that
Right. You'll have to ask upstream pep8 to add it. However, this isn't purely for comments. Yes doc-strings can be used for block-commenting, but I've rarely seen them used that way. I'm not sure there will be a good way to add an error code for this that won't be error prone. Still, the proper place to discuss the addition of the error code is upstream.
from flake8.
In GitLab by @sigmavirus24 on Jan 24, 2015, 11:32
Since this relies entirely on changes being made in pep8 and is not specifically a flake8 bug, I'm closing this.
from flake8.
Related Issues (20)
- Use setuptools.build_meta HOT 1
- E231 when using f-string HOT 1
- Export current configuration HOT 1
- --append-config does not extend defaults HOT 1
- Throwing a lint error when there isn't one HOT 2
- flake8 crash (string index out of range) on python 3.12 HOT 7
- Allow the enforcing of some type hint practices HOT 1
- Docu: Lookup location for ".flake8" unclear HOT 3
- Ignore "SyntaxWarning: invalid escape sequence" HOT 6
- pycodestyle entry point means "noqa" is not populated HOT 1
- Allow TODO issue with pound sign anywhere in text HOT 6
- pre-commit cache contains tests folder HOT 2
- Trailing slash breaks exclude and extend-exclude config HOT 1
- Update plugin registration documentation about entry points HOT 4
- E704 false positives with one line overload def HOT 2
- E713 thrown for f-strings HOT 3
- E704 is now conflicting with new black formatting rules HOT 4
- flake8 E704 Errors Triggered by Inline Ellipsis Formatting in Newer black Versions HOT 1
- Flake8 failed to load plugin "pycodestyle" due to cannot import name 'missing_whitespace_around_operator' from 'pycodestyle' HOT 3
- flake8-commas incompatible with 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 flake8.