Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vericode-1.0.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vericode-1.0.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for vericode-1.0.2.tar.gz
Algorithm Hash digest
SHA256 14f1efe3ca837d543b66df29db9e136ec84158330861a85b91112224f497d4bb
MD5 bcde6d305d3c6fec19dcef8892b17d8b
BLAKE2b-256 3b71c2985e744936dcb74cb00f4f8561d66a04023709c8d09c7c8bd7e499c5fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vericode-1.0.2.tar.gz:

Publisher: publish.yml on PalNilsson/vericode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for vericode-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22fd5f7fdba539271b3ad769476ca5e8149f3b1e1825fbbe2bc1c72ba3885477
MD5 7b1d1e10ffcce31699a83c49cce1fd89
BLAKE2b-256 3bf04bebbdb53ce8c7869e64c3f1b0d19f19354f018efc0cf1c3d65511cc0774

See more details on using hashes here.

Provenance

The following attestation bundles were made for vericode-1.0.2-py3-none-any.whl:

Publisher: publish.yml on PalNilsson/vericode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page