A linter for Cython files
Project description
cython-lint
A tool and pre-commit hook to lint Cython files.
Installation
$ pip install cython-lint
Usage as a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.1.1
hooks:
- id: cython-lint
Command-line example
$ cython-lint my_file_1.pyx my_file_2.pyx
my_file_1.pyx:54:5: 'get_conversion_factor' imported but unused
my_file_2.pyx:1112:38: 'mod' defined but unused
Configuration
Exclude lines by include a # no-cython-lint comment (analogous to # noqa in flake8).
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
cython_lint-0.1.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cython_lint-0.1.1.tar.gz.
File metadata
- Download URL: cython_lint-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
254067c1110e5de7e93a0f6b5f71c670ebf45a433523a31b38fb8606e2de4438
|
|
| MD5 |
4329f23cbd23c589e2757c96c244b356
|
|
| BLAKE2b-256 |
c01484becd245325d7c82fb409860d65afb311606ada91c6fd6c9e215890a0d9
|
File details
Details for the file cython_lint-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: cython_lint-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7c463ee5314efc68b189059cd145a5df7ee320a391be7e719658851a3936b7a
|
|
| MD5 |
1a507f0874d15c356ade080701aea316
|
|
| BLAKE2b-256 |
41f690ad3fb88500c635dcc54c8ed7c74815c76d751f6462b3e62356f06bf49d
|