semvec/pypi-packages huggingface dataset:
r2c-jinjalint 0.7.2
A linter for Jinja-like templates
License: MIT

# jinjalint

A prototype linter which checks the indentation and the correctness of
[Jinja][jinja]-like/HTML templates. Can [fix issues][django-commit].

It works with [Django’s templates][djangotemplates] too, it should
work with [Twig](https://twig.symfony.com/) and similar template languages.
It should work fine with any kind of HTML 4 and 5, however XHTML is not
supported.

This linter parses both HTML and Jinja tags and will report mismatched
tags and indentation errors:

```html+jinja
<div>
    {% if something %}
    </div>
{% endif %}
```

```html+jinja
<div>
    <span>
    </div>
</span>
```

```html+jinja
  {% if something %}
 <div> not indented properly
      </div>
   {% endif %}
```

```html+jinja
{% if something %}<a href="somewhere">{% endif %}
    <p>something</p>
{% if not something %}</a>{% endif %}
```

## Usage

You need Python 3. Jinjalint doesn’t work with Python 2. Install it with
`pip install jinjalint` (or `pip3 install jinjalint` depending on how `pip` is
called on your system), then run it with:

```sh
$ jinjalint template-directory/
```

…or:

```sh
$ jinjalint some-file.html some-other-file.html
```

This is a work in progress. Feel free to contribute :upside_down_face:


## Usage with [pre-commit](https://pre-commit.com) git hooks framework

Add to your `.pre-commit-config.yaml`:

```yaml
-   repo: https://github.com/motet-a/jinjalint
    rev: ''  # select a tag / sha to point at
    hooks:
    -   id: jinjalint
```

Make sure to fill in the `rev` with a valid revision.

_Note_: by default this configuration will only match `.jinja` and `.jinja2`
files.  To match by regex pattern instead, override `types` and `files` as
follows:

```yaml
    -   id: jinjalint
        types: [file]  # restore the default `types` matching
        files: \.(html|sls)$
```

## Hacking

Jinjalint is powered by [Parsy][parsy]. Parsy is an extremely powerful
library and Jinjalint’s parser relies heavily on it. You have to read
Parsy’s documentation in order to understand what’s going on in
`parse.py`.

[jinja]: http://jinja.pocoo.org/docs/2.9/
[django-commit]: https://github.com/django/djangoproject.com/commit/14a964d626196c857809d9b3b492ff4cfa4b3f40
[djangotemplates]: https://docs.djangoproject.com/en/1.11/ref/templates/language/
[parsy]: https://github.com/python-parsy/parsy
top-drawer 0.1.0
Package name chooser
License: MIT
Keywords: choice,chooser,name

# Top Drawer

Ever had trouble finding a valid name for that new package ? 

`top-drawer` is command line tool to help with that by searching for synonyms
of a word and validate if they are available on pypi or npm.

### Install

Python >= 3.6:

`$ pip install top-drawer`

### Usage

```
$ top-drawer --help
usage: top-drawer [-h] [-v] [--log-file LOG_FILE] [--quiet] [-c CONFIG_FILE]
                  [--api-key API_KEY]
                  ...

    Thesaurus search and availability validators to find new package names.
    

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         - (default: False)
  --log-file LOG_FILE
  --quiet
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        Config file path (default: None)
  --api-key API_KEY     Your bighugelabs.com api key (default: None)

Commands:
  
    search              Search for valid words from the thesaurus definition.
    validate            Validate a word is available.
    thesaurus           Get the thesaurus definition from Big Huge Thesaurus.
    clear-cache         Clear the validations cache.
```

```
$ top-drawer search --help                                                                                                                                      ✔  17:37 
usage: top-drawer search [-h] [-c {snakecase,spinalcase}] [--pypi] [--npm] [-f]
                         [-w {noun,verb,adjective} [{noun,verb,adjective} ...]]
                         [-m {syn,ant,usr,sim,rel} [{syn,ant,usr,sim,rel} ...]]
                         word

Search for valid words from the thesaurus definition.

positional arguments:
  word                  The word to search.

optional arguments:
  -h, --help            show this help message and exit
  -c {snakecase,spinalcase}, --casing {snakecase,spinalcase}
                        The casing to apply to synonyms. (default: spinalcase)
  --pypi                Disable validation on pypi. (default: True)
  --npm                 Disable validation on npm. (default: True)
  -f, --full            Include the invalids in the output. (default: False)
  -w {noun,verb,adjective} [{noun,verb,adjective} ...], --word-type {noun,verb,adjective} [{noun,verb,adjective} ...]
                        Type of words to use. (default: None)
  -m {syn,ant,usr,sim,rel} [{syn,ant,usr,sim,rel} ...], --mode {syn,ant,usr,sim,rel} [{syn,ant,usr,sim,rel} ...]
```

## Links

- [Big Huge Thesaurus](https://words.bighugelabs.com/)
- [precept](https://github.com/T4rk1n/precept)