Comments (7)
Figure we should exempt Ellipsis and Pass from the calculation.
from pylint.
black
moves pass
to the next line in this example, so might want to focus on ...
only?
class Apple: pass
from pylint.
Either way, but I don't think it hurts to exempt pass from the pylint check. I'm surprised black treats them differently.
from pylint.
Agree with @jacobtylerwalls, let's make pylint consistent for those not using black.
from pylint.
After looking into it, a good half of our examples and functional tests are just something with pass
at the end. We might want to add an option to permit to still raise for pass
or ...
?
from pylint.
Are we sure that's not just a shortcut taken by test authors? Is there any original discussion about the check?
from pylint.
So it seems it's a decision that was done a long time ago but not in Logilab so we have a little context, I've done a little lot of digging and the functional test come from 0781e73 and the original file was renamed here ee2571c, then #3224 happened, and was moved previously here 33b8185, #2236 happened, moved in 26eb7f9 and in 170b305 . Then the history of the antique test/test_format.py
point to f1209f5. Maybe there's more info on bitbucket (can't find the repo though) but it seems Jacob's hypothesis is likely.
from pylint.
Related Issues (20)
- E1101 raised when accessing a not annotated property returning a dynamic object HOT 1
- Add check for using major 3.11 and 3.12 features with lower `--py-version`
- ``pyreverse`` should check that ``klass`` is still ``ClassDef`` HOT 3
- FN `attribute-defined-outside-init` with `setattr()`
- False positive R1730 consider-using-min-builtin, R1731 consider-using-max-builtin
- Crash ``whilst running pylint in vscode`` HOT 1
- False positive `arguments-differ` on `__post_init__` method in dataclass inheritence
- [pyreverse] Dunder methods in diagrams HOT 1
- Report global object redefinition
- pylint does not recognize pytest fixtures HOT 1
- False positive for optional class attribute HOT 1
- False positive for optional class attribute HOT 1
- False positive for no-member with property setters HOT 4
- False positive `not-async-context-manager` with Pydantic `PrivateAttr`
- Weird __slots__ manip causes pylint to crash
- `used-before-assignment` false positive for `type` alias
- `from __future__ import annotations` is 3.7+
- Standard collection typing is 3.9+
- Assign expression / walrus operator is 3.8+
- Positional-only parameters are 3.8+
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 pylint.