ndnt
The tool that helps you inspect indents of your files.
Installation
You can install it via:
pip install ndnt
Usage
To get list of all available options run one of following:
ndnt -h
ndnt --help
Basic
Here is how you can inspect indentation of all current directory programming files:
ndnt
By default ndnt searches for files of any programming languages.
It includes many popular languages, but if your language doesn't supported
please, create issue.
If you want to inspect specific file or directory you can do it like this:
> ndnt setup.py
3.43 | setup.py
> ndnt .
5.64 | cronjobs/cronjobs.py
0 | extension/popup.js
5.99 | extension/colors.js
9.24 | extension/content.js
0.67 | frontend/babel.config.js
3.6 | frontend/vue.config.js
5.16 | frontend/src/index/App.vue
0.52 | frontend/src/index/main.js
5.24 | frontend/src/index/views/Home.vue
4.65 | frontend/src/index/views/Favorites.vue
6.84 | frontend/src/login/App.vue
0.2 | frontend/src/login/main.js
0 | gunicorn.conf.py
4.99 | app.py
8.21 | jobs/jobs.py
-------------
5.95 | Total
Many paths
You can inspect more than one path at the same time:
> ndnt ndnt/paths.py tests/test_paths.py
5.76 | ndnt/paths.py
4.97 | tests/test_paths.py
Ndnt can accept output from other commands, like fd or rg:
> fd paths | xargs ndnt
5.76 | ndnt/paths.py
4.97 | tests/test_paths.py
Exact extension
If you want to get information about files with specific extension
you can use -e (or --extension) option:
ndnt -e .py
Ignored
By default ndnt reads .gitignore file but you can disable it
with --no-gitignore flag, for example:
ndnt -e .py --no-gitignore
Metadata
Release files for ndnt 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ndnt-1.3.1.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ndnt-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / ndnt-1.3.1.tar.gz
| Download URL | ndnt-1.3.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dee59338e4eaea10ea6094b6f1ff17f2ff31a7b7888e28ab1ab1e3df40e3dd13
|
|
BLAKE2b-256 checksum How to use checksums |
b61238b5af48499347da4e83700268966980a6f1b6b7f5c8649df5f5f5213461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / ndnt-1.3.1-py3-none-any.whl
| Download URL | ndnt-1.3.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f97f106c33b7698827fb3861460f47909a76fcd74377adee822456e6769f396
|
|
BLAKE2b-256 checksum How to use checksums |
6e4300d840fe01b763d05ab0ea96bfa76f3566bcc560fb5a23acaabb20d172ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|