Comments (6)
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.
Related Issues (20)
- [unsubscriptable-object] FP for generic classes (PEP 695) HOT 2
- pyreverse tracking and drawing class data member relations in addition to instance data members (maybe enable/disable option). fixes attrs.org
- [duplicate-code] unclear how to disable the message for select occurrences, while keeping the option enabled in general
- Feature Request: Naming Convention Enforcement for Boolean Values & Functions HOT 8
- Pylint incorrectly resolving type vs instances HOT 1
- astroid.node Attribute Error HOT 1
- protected-access false positive in class method of child class HOT 1
- unused-argument in .pyi stub file HOT 1
- too-many-try-statements should exclude `pass` statements if required by Python HOT 2
- `too-few-public-methods` counts dunder methods as private HOT 2
- `unexpected-keyword-arg` (E1123) and `missing-kwoa` (E1125) false positives with changing dict
- [Enhancement] `newline` argument for `csv.reader()`
- pylint's type checker ignores type interface files HOT 6
- False positive: overriding a generic `ParamSpec` method triggers `arguments-differ` (W0221)
- false positive: no-member when importing from matplotlib.cm
- False positive: import-error and no-name-in-module when importing from python-docx HOT 2
- `too-few-public-methods` doesn't count dunder methods if inherited HOT 7
- Increase the cases detected by dangerous-default-value (W0102) ? HOT 1
- Crash AstroidError AttributeError: 'TreeRebuilder' object has no attribute 'visit_typealias' HOT 1
- False positive not-an-iterable on partial async iterator
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.