Comments (5)
It's "by design", writing a new output file is useless (or misleading you into thinking it worked) if the functional test does not output the expected value. That said the functional test is still going to fail the line after, and you're only going to have a temporarily better output file while you fix the issue with the functional test. Feel free to open a MR to change the order :)
from pylint.
Ah, maybe I'm confused about the relationship of the functional test and the output ref. I assumed that the output text file was a reference we compared the pylint output to, without any ignore tags. And the functional test was to assert certain warnings on certain lines.
Nvm that's correct. pylint already outputs "here's what you need to copy/paste" in response to a failed test, so I don't believe fixing this would mislead you any more that it already does.
from pylint.
I assumed that the output text file was a reference we compared the pylint output to, without any ignore tags.
Yes, but I'm not sure if I understand the "without any ignore tags" part.
And the functional test was to assert certain warnings on certain lines.
Yes, or the absence of them, if you have unexpected warning the functional test file fail. (And if the functional test fail file updating the output is going to create a wrong output).
from pylint.
I just meant running pylint on the whole file, ignoring the warning annotations. Disregard.
from pylint.
It seems you're already deep in the truth/code so I'm not sure if this part of the doc might help (maybe to get a general idea): https://pylint.readthedocs.io/en/stable/development_guide/contributor_guide/tests/writing_test.html#functional-tests
from pylint.
Related Issues (20)
- possibly-used-before-assignment for function that is checked for call ability before calling HOT 2
- `too-few-function-args` overlaps with `no-value-for-parameter`
- Inconsistent and sometimes incorrect false positive of `no-member` error HOT 9
- `redefined-outer-name` (`W0621`) - false positive on 3.12 type aliases
- False positive missing member __value__ with type statement and Literal under python 3.12
- Pylint Crash when building the AST of a dataclass with a `Any` member field HOT 2
- Behavior of --prefer-stubs HOT 3
- False positive for protected-access / W0212 in a very simple class HOT 3
- False Negative function-redefined when function named with leading underscore HOT 3
- Dynamic color mapping for "fail-on" messages/categories in ColorizedTextReporter HOT 1
- RecursionError when analyzing sqlalchemy's code HOT 1
- Clarify `no-else-raise` and `no-else-return` also apply to try/except HOT 1
- False positive `invalid-overridden-method` when overridding `Enum.value`
- False positive E1126 (invalid-sequence-index) on generic type alias with forward ref HOT 3
- pylint treats `package.module` same as `package/module.py` in terms of search HOT 7
- False positive `inconsistent-return-statements` with `typing.assert_never` HOT 4
- False positive unexpected-keyword-arg (E1123) HOT 3
- Spurious W3301: min(value, min(iterable)) does not do the same thing as min(value, iterable)
- Document how to only run pre-push with the pre-commit integration HOT 1
- Retiring checks related to old Python versions HOT 7
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.