-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate content from pylint-errors
into the new pages for message
#5527
Comments
#5396 is more about creating a structure and linking for the individual pages. I think this issue and associated PRs should cover how we are going to store the data for the messages pages. Later PRs can then cover writing the actual data. Based on the work of @vald-phoenix for pylint-errors I think each page should (ideally) cover the following sections:
The first message on However, before doing the "data collection" part we should consider how to store these sections. I thought some more about integrating the code examples with the functional tests, but I think that is likely going to become a big mess. Taking the message I linked as an example: the good and bad code takes up 7 lines, whereas in our test suite this is 17 lines. For other messages this will be much higher. The file for What I would propose is to create a new folder We can add many things to this to improve it. For example, adding information about writing checker documentation to the PR template and creating a "suggest documentation yourself" button for pages for which no code examples have been written. One major drawback to this approach is that it is difficult to see for a contributor how Please let me know what you think of my proposed sections per message, my proposed folder structure/location and my proposed file separation. I'd like to work on the actual implementation of this myself, but I think we should reach consensus on these topics before going forwards. |
I like that the rational is coming first. Development related information imho should be after related source like stack-overflow or blog post.
Perfect.
All good, I don't see the "development related" information file ? Maybe it's entirely generated ?
Agree with that, it's not hard to launch the functional tests on good.py/bad.py to check that it does what it's supposed to do (and it check that our examples and pylint are consistent which is really valuable). Let's do that in the next step though. On a more technical note I think we should merge git history with pylint-error and create a feature branch in pylint so we don't have an enormous merge request with thousands of changes while we work on this. |
Do you want to create a new issue for adding data or do you re-scope this one and create a new issue about adding data ? |
Works for me.
Yes!
👍
I was thinking of doing one PR to set up the directory and file system and then doing subsequent PR's for smaller batches of code examples. While I trust that the information in
We can re-scope this one and close when the file management is in place. Then do a new issue "Copy data from |
Sure ! What do you think of this ?
|
I'm not sure about actually merging the git history, but I think in general such a workflow should work! |
Reopening because some of the item are not handled yet. |
Going to create a follow up issue to help do this and guide the effort. I think the task in this issue (set up a system) has been done. |
Current problem
We'll have a single documentation page for each message following #5396 but we need to add the content.
Desired solution
Start by taking what exists in
pylint-errors
, the owner is okay with it and the license is MITdoc/data/messages/original
good.py
/bad.py
Additional context
#5396 (comment)
The text was updated successfully, but these errors were encountered: