Skip to main content

MFD Code Quality

This module provides a set of methods for checking code quality.

Along with the module installation, additional CLI tools appear in your environment.

Usage

When installing mfd-code-quality package all the commands from table below will become available from command-line.
So you can just type i.e. mfd-help in your terminal without a need to call it from Python.
If command requires configuration, the config file will be automatically created and removed after execution.

Available commands

Command Description
mfd-help Log available commands.
mfd-code-standard Check code standard using Ruff (format, check) or flake8. Depending on what is available.
mfd-code-format Format code using ruff check --fix and ruff format.
mfd-import-tests Try to import each Python file to check import problems.
mfd-system-tests Run system tests.
mfd-unit-tests Run unit tests.
mfd-unit-tests-with-coverage Run unittests and check if diff coverage (new code coverage) is reaching the threshold (80%).
mfd-all-checks Run all available checks.

Available arguments (for all commands)

  • -p / --project-dir - path to the root directory (default: current working directory)

  • -v / --verbose - enable verbose output

Configuration files

We are using two configuration files (created/modified/removed automatically):

  • ruff.toml - for ruff configuration

  • pyproject.toml - for project/generic configuration

Custom configuration

Some modules have custom configuration files. Files are stored in mfd_code_quality/code_standard/config_per_module directory. Configuration files are merged with generic one during configuration process.

OS supported:

OS agnostic

Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.

Metadata

Release files for mfd-code-quality 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mfd-code-quality 1.4.1
File Interpreter ABI Platform Actions
mfd_code_quality-1.4.1-py3-none-any.whl Python 3 none any Details for mfd_code_quality-1.4.1-py3-none-any.whl

Release files / mfd_code_quality-1.4.1-py3-none-any.whl

Download URL mfd_code_quality-1.4.1-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a0bf056c22da1629083cd6aeae80e91310ea5089d002f75e5a991882bf9c00d
BLAKE2b-256 checksum
How to use checksums
f60bbf52aab24f12c4a55f95b096e567701cd1a09be48e39023b8e1d8c35e0b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for mfd-code-quality 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page