French for Vellum
Project description
Vélin
French for Vellum
Vellum is prepared animal skin or "membrane", typically used as a material for writing on. Parchment is another term for this material, and if vellum is distinguished from this, it is by vellum being made from calfskin, as opposed to that from other animals,[1] or otherwise being of higher quality
install
You may need to get a modified version of numpydoc depending on the stage of development.
$ git clone https://github.com/Carreau/velin
$ cd velin
$ pip install flit
$ flit install --symlink
Autoreformat docstrings
This assume your docstrings are in RST/Numpydoc format, and will try to fix common formatting mistakes and typo.
velin [--write] <path-to-file.py> or <path-to-dir>
Without --write
vélin will print the suggested diff, with --write
it will attempt to update the files.
options
(likely not up to date, make sure to run velin --help
to check for new,changed
or removed options)
$ velin --help
usage: velin [-h] [--context context] [--unsafe] [--check] [--no-diff] [--black] [--with-placeholder] [--no-color] [--compact] [--no-fail] [--write]
path [path ...]
reformat the docstrigns of some file
positional arguments:
path Files or folder to reformat
optional arguments:
-h, --help show this help message and exit
--context context Number of context lines in the diff
--unsafe Lift some safety feature (don't fail if updating the docstring is not indempotent
--check Print the list of files/lines number and exit with a non-0 exit status, Use it for CI.
--no-diff Do not print the diff
--black Do not run black on examples
--with-placeholder insert missing sections/parameters placehoders
--no-color
--compact Please ignore
--no-fail
--write Try to write the updated docstring to the files
kind of things it fixes
- Spacing around colon,
- If one parameter has typo wrt function signature: fix it.
- Insert all missing parameters with placeholders.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file velin-0.0.9.tar.gz
.
File metadata
- Download URL: velin-0.0.9.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b8d2238219b414d2f311eeccef26c423f4181f73ddff6f446ed0829cc58783b |
|
MD5 | b2254ad9635444100f2b9a7b5d74ed81 |
|
BLAKE2b-256 | 10baf0eeba7424412324de945795fd2a985519aea0a12067fb2050c9775bda03 |
File details
Details for the file velin-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: velin-0.0.9-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3cb2231a25adfdc858cf8bf49b85876eb32592e59ab8c98cda7d606c38a19f |
|
MD5 | caf09ca2a96bf5eff25b7370716834fb |
|
BLAKE2b-256 | dbff5eb8c03a945c4f92563cdfb3b39047e84ae804ba018839b4ac74cc8e8613 |