Multi-language code verification tool
Project description
VeriCode
A plugin-based python tool that to be used with various code checkers. The tool currently has plugins for pylint, flake8 and pydocstyle. It will have support for TypeScript in the future.
Installation
The tool can be pip installed:
pip install vericode
How to use
The tool is run from the command line. It requires a tool to be specified with the -t flag and a source directory or file
to be checked with the -s flag. The tool will run the specified code checker on the given source and report the results. The tool can also be configured with various flags to control
the output and behavior. See examples below.
vericode -t <tool> -s <source>
Examples
Standard flake8 test of the code in the given directory:
vericode -t flake8 -s directory or file
Only report files that have a certain flake8 error:
vericode --select error_code -t flake8 -s directory or file
Standard pylint test of the code in the given directory. In this mode, the tool reports processed files, their individual pylint scores and the average score for the directory:
vericode -t pylint -s directory or file
Pure pylint error reporting:
vericode --errors-only -t pylint -s directory or file
Only report files that have a pylint score below a certain threshold:
vericode --scores-less-than threshold -t pylint -s directory or file
In the case there are such files, the tool will print them out and consider the run failed.
Standard pydocstyle test of the code in the given directory:
vericode -t pydocstyle -s directory or file
Limitations
- Only one directory or file can be processed at a time. If a directory is given, the tool will process all files in the directory and its subdirectories.
- --select flag is only supported for flake8 tests.
WARNING: The tool is still in development and may have bugs. If you find any, please report them on the GitHub repository.
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
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 vericode-1.0.2.tar.gz.
File metadata
- Download URL: vericode-1.0.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f1efe3ca837d543b66df29db9e136ec84158330861a85b91112224f497d4bb
|
|
| MD5 |
bcde6d305d3c6fec19dcef8892b17d8b
|
|
| BLAKE2b-256 |
3b71c2985e744936dcb74cb00f4f8561d66a04023709c8d09c7c8bd7e499c5fc
|
Provenance
The following attestation bundles were made for vericode-1.0.2.tar.gz:
Publisher:
publish.yml on PalNilsson/vericode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vericode-1.0.2.tar.gz -
Subject digest:
14f1efe3ca837d543b66df29db9e136ec84158330861a85b91112224f497d4bb - Sigstore transparency entry: 339660013
- Sigstore integration time:
-
Permalink:
PalNilsson/vericode@e134ec41f2e0f5e86237fe25006b4f92dd0daf9d -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/PalNilsson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e134ec41f2e0f5e86237fe25006b4f92dd0daf9d -
Trigger Event:
push
-
Statement type:
File details
Details for the file vericode-1.0.2-py3-none-any.whl.
File metadata
- Download URL: vericode-1.0.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22fd5f7fdba539271b3ad769476ca5e8149f3b1e1825fbbe2bc1c72ba3885477
|
|
| MD5 |
7b1d1e10ffcce31699a83c49cce1fd89
|
|
| BLAKE2b-256 |
3bf04bebbdb53ce8c7869e64c3f1b0d19f19354f018efc0cf1c3d65511cc0774
|
Provenance
The following attestation bundles were made for vericode-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on PalNilsson/vericode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vericode-1.0.2-py3-none-any.whl -
Subject digest:
22fd5f7fdba539271b3ad769476ca5e8149f3b1e1825fbbe2bc1c72ba3885477 - Sigstore transparency entry: 339660025
- Sigstore integration time:
-
Permalink:
PalNilsson/vericode@e134ec41f2e0f5e86237fe25006b4f92dd0daf9d -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/PalNilsson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e134ec41f2e0f5e86237fe25006b4f92dd0daf9d -
Trigger Event:
push
-
Statement type: