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.

How to use

The tool can be used by running the following command:

python3 vericode.py -t <tool> -s <source>

Examples

Standard flake8 test of the code in the given directory:

python3 vericode.py -t flake8 -s directory or file

Only report files that have a certain flake8 error:

python3 vericode.py --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:

python3 vericode.py -t pylint -s directory or file

Pure pylint error reporting:

python3 vericode.py --errors-only -t pylint -s directory or file

Only report files that have a pylint score below a certain threshold:

python3 vericode.py --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:

python3 vericode.py -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.

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.1.tar.gz (14.6 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.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file vericode-1.0.1.tar.gz.

File metadata

  • Download URL: vericode-1.0.1.tar.gz
  • Upload date:
  • Size: 14.6 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.1.tar.gz
Algorithm Hash digest
SHA256 b90d3bc3b9228ff71070553a756349582ec28f76bd717f53b59a583886400922
MD5 a1420d1af3cac370cabfae231b8bcf7f
BLAKE2b-256 0b79ef837cf9516c67e40dac4e86c7c83977b2e5d5cc60d3c9cee9860b32bb1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vericode-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: vericode-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da1f5a7c515658d3f1fdad0faa2b856d0fd16a092873e70f5ea04c5a0e5199ee
MD5 74e8dc8a6cc6a07f3232f8d9461200a6
BLAKE2b-256 e5a2ba22d8f5479c0a7b5d34fca2b59cc4f6e5ce72886d728164abe7f5b2ef9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vericode-1.0.1-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