Comments (4)
For example one, I've decided that it goes against the expected behaviour. If the user was to want to skip an indented function they can prefix it with an underscore. That will now be a valid check by default after this merge, and has been
Fixed
For example two, it is expected that the function is skipped, as it is not in the global scope and exists within the function as sort of a private function or class. I understand that yourself and your team (and other users) may want to document and check these too, so I've
Added
a new flag,-N/--check-nested
. Please pass this flag after you've updated docsig to the latest release (or add it to your pyproject.toml to run this check by default)I'll include these changes with
v0.47.0
which should be available on PyPI when you see this.Any issues please don't hesitate to open another issue
Thanks again! Stephen
Hi Stephen,
thanks a lot for the implementation. I have already tested it and it works like a charm. Also thanks for the additional flag, I think this completely makes sense.
If we have any other issues we will let you know, but at the moment everything is working very smooth!
Thanks again and Best
Conrad
from docsig.
Thank you for taking the time to open this issue, I'm happy to hear you have found a use for this package, and I appreciate your interest in improving it
Docsig is pretty specific in what it does, but there's a lot of room for customisation. I'll review this issue, and the code you provided a little more, and I'll get back to you as soon as I can (once I have some additional info I can provide)
Cheers!
Stephen
from docsig.
For example one, I've decided that it goes against the expected behaviour. If the user was to want to skip an indented function they can prefix it with an underscore. That will now be a valid check by default after this merge, and has been Fixed
For example two, it is expected that the function is skipped, as it is not in the global scope and exists within the function as sort of a private function or class. I understand that yourself and your team (and other users) may want to document and check these too, so I've Added
a new flag, -N/--check-nested
. Please pass this flag after you've updated docsig to the latest release (or add it to your pyproject.toml to run this check by default)
I'll include these changes with v0.47.0
which should be available on PyPI when you see this.
Any issues please don't hesitate to open another issue
Thanks again!
Stephen
from docsig.
Great! Thanks for confirming @conrad-stork-basf 😃
from docsig.
Related Issues (20)
- Support for Python 3.7.x HOT 4
- Report when the parameter is spelled wrongly HOT 3
- `docsig -v` doesn't print version
- Support for Numpy HOT 3
- Parameter and return value is not correctly recognized HOT 8
- Feature request - pre-commit integration & links HOT 4
- Add linkable path
- False positive when return annotation is a string HOT 2
- Skip checking for one line docstings HOT 2
- Handling of *args and **kwargs HOT 7
- Issue with pre-commit integration
- Import error on `sphinxcontrib.napoleon` on Python 3.10.8 HOT 6
- args and kwargs are not recognized as generic arguments HOT 2
- Positional-only arguments not recognized HOT 3
- Enhancement suggestion: Add capability to check __init__ document in its own docstring HOT 3
- docsig doesn't seem to support `@typing.overload`-ed functions/methods well HOT 2
- `@typing.overload`-ed methods not supported HOT 1
- Sphinx 7.0 compatibility HOT 4
- Optinal return statements with overload function result in docsig error E104 HOT 2
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 docsig.