dyc icon indicating copy to clipboard operation
dyc copied to clipboard

Python prefixed formats

Open Zarad1993 opened this issue 4 years ago • 9 comments

We have a default config file for defining formats. It would be nice to create known formats and reference them in our dyc.yaml file.

Usage

dyc.yaml Just an idea

-
  extension: py
  style: sphinx/google/numpy

Then it would follow the known style format of sphinx or google or numpy

We can have these files in defaults for references configs/{{style}}.yaml

That way it would be easier for a project to set docstrings standards based on a style

Zarad1993 avatar Apr 16 '20 12:04 Zarad1993

I am interested in this. May I take a look? @Zarad1993 . Just help me out in case I need assistance

Shankhanil avatar Apr 17 '20 11:04 Shankhanil

@Shankhanil - Yes, please. Feel free to star tackling it 🙂

Zarad1993 avatar Apr 17 '20 13:04 Zarad1993

Can you pls go ahead and detail the issue. What exactly do you require, and which portion of codebase do i need to go through. Btw, I am using dyc in my new python project! @Zarad1993

Shankhanil avatar Apr 17 '20 15:04 Shankhanil

That's great. Sure I'll add some more details soon. The high-level idea is to add some fixed templates, so instead of customizing it. You can choose pre-existing ones. This is an example of a sphinx ones https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html

Zarad1993 avatar Apr 17 '20 16:04 Zarad1993

Cool, so I am going to add sphinx docstring format initially, and if that's successful, I will introduce NumPy and Google style. @Zarad1993

Shankhanil avatar Apr 17 '20 18:04 Shankhanil

Yes, then instead of having to define these formats manually in your project. You can just extend it to use them across the board.

Zarad1993 avatar Apr 17 '20 18:04 Zarad1993

I really apologize for the impossible delay. I took some time to understand the project, and then caught busy with other stuffs. Please review the PR. @Zarad1993

Shankhanil avatar May 13 '20 11:05 Shankhanil

the default format given for DYC is only documenting the function and the parameters. But it doesn't specify a format for a class and errors that the function is raising. The class is under progress, as given in the README. What about errors?

Shankhanil avatar May 13 '20 11:05 Shankhanil

Is this issue still open? I would like to work on this issue. Can you please assign this to me?

ajjayymahato avatar Sep 26 '22 19:09 ajjayymahato