Linter for Machine Learning projects
Project description
mllint
— Linter for Machine Learning projects
mllint
is a command-line utility to evaluate the quality of Machine Learning (ML) projects by means of static analysis of the project's repository. It measures the project's adherence to ML best practices, as collected and deduced from SE4ML and Google's Rules for ML.
Installing mllint
mllint
is compiled for Linux, MacOS and Windows, both 64 and 32 bit x86 (except MacOS), as well as 64-bit ARM on Linux and MacOS (Apple M1).
mllint
is published to PyPI, so it can be installed using pip
:
pip install mllint
Running mllint
To run mllint
in its default configuration, use one of the following commands:
# Run `mllint` on the project in the current folder
mllint
# Run `mllint` on the project in projects/my-ml-project
mllint projects/my-ml-project
Of course, feel free to explore mllint help
for more information about its commands.
mllint
will analyse your project and create a Markdown-formatted report of its analysis. By default, this will be pretty printed to your terminal.
If you instead prefer to export the raw Markdown text to a file, use the --output
or -o
flag and provide a filename. Using -
as the filename prints the raw Markdown directly to your terminal.
# Prints the Markdown-formatted report of your project to 'report.md'
mllint --output report.md
# Prints the raw Markdown report to your terminal
mllint -o -
See docs/example-report.md for an example of a report that mllint
generates.
Linters and rules
To list all available or all enabled linting rules, use one of the following commands:
# List all available (implemented) linting rules
mllint list all
# List only the enabled rules for the project in the current folder.
mllint list enabled
# or for a project in projects/my-ml-project
mllint list enabled projects/my-ml-project
To learn more about a certain rule or category, use mllint describe
along with the slug of the category or rule. The slug is the lowercased, dashed text that is often or always displayed next to the category or rule. This is the same slug as you use to enable or disable rules.
As an example:
# Describe the Version Control category. This will also list the rules that it checks.
mllint describe version-control
# Describe the rule on DVC usage in the Version Control category
mllint describe version-control/data/dvc
Configuration
YAML
mllint
can be configured using a .mllint.yml
file that should be placed at the root of the project directory. This is a YAML file in which you can configure specific settings for various linting rules, as well as disable specific rules or even entire categories if you wish.
An example .mllint.yml
that disables some rules looks as follows:
rules:
disabled:
- version-control/code/git
- dependency-management/single
TOML
Alternatively, if no .mllint.yml
exists, mllint
searches the pyproject.toml
file in the root of the project for a [tool.mllint]
section. TOML has a slightly different syntax, but the structure is otherwise the same as the config in the YAML file. The example below is identical to the YAML example above.
[tool.mllint]
[tool.mllint.rules]
disabled = ["version-control/code/git", "dependency-management/single"]
Here are some useful commands related to configuration:
# Print the configuration of the project in the current folder
mllint config
# Print the configuration of the project in projects/my-ml-project
mllint config projects/my-ml-project
# Print the default configuration (unless there's a folder called 'default' in the current dir)
mllint config default
# Create a valid `.mllint.yml` file with the default configuration
mllint config default -q > .mllint.yml
Getting Started (development)
Clone this repository and run go run .
in the root of this 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 Distributions
Hashes for mllint-0.5.1-pp37-pypy37_pp73-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c3635317a57af2315ecf94a7a5619c0b228bba598ef2dd2c0e1bef7a1ea1531 |
|
MD5 | a0cda5548f389c365f06590934e8b05d |
|
BLAKE2b-256 | 0d9d75978f28f25683bd2b5df92783e37ba37782c2e79468e0cd3002ddd1a025 |
Hashes for mllint-0.5.1-pp37-pypy37_pp73-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a17c1d98b12b00c34ec4bd1cc1df263d9591bbb0173d5f76aa2526b6cd0b14 |
|
MD5 | 26384260a5980807d3698872268009e7 |
|
BLAKE2b-256 | 5c77900c93f82696c1949f06ce2cc94c126b9a93b933a849c4fe44e806e4486d |
Hashes for mllint-0.5.1-pp37-pypy37_pp73-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51372bc7025cfc6ae30640c913afdb30c56ed40d18f7b8c36d2ebeca744c1d7f |
|
MD5 | 27b947475c800d64feff8a12158d1c21 |
|
BLAKE2b-256 | c2ccc2af32b42a9af33d58e87c60197a9078ece36757a00173728c73455c61ad |
Hashes for mllint-0.5.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd11e739ab714169d33f571a028845d230872d4d9eb2b664af36395b0d1008c6 |
|
MD5 | 50042fbf313185d49c39b3b94d667fe9 |
|
BLAKE2b-256 | 72f5c4945138dd256d4e04a8e52d53f095bfd0b34d57869d31fce5cbc70fce81 |
Hashes for mllint-0.5.1-pp36-pypy36_pp73-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a8b99e540c45dd9d77e4df7d19f8119e745221cd273250ec313c1a51b1f538 |
|
MD5 | e6f667b51025abef7821ad1fefc6ea11 |
|
BLAKE2b-256 | 7fa26848a0583c4d35f92c749bc1b78d41ea2a3fae1876a4c88cac75f5ba6519 |
Hashes for mllint-0.5.1-pp36-pypy36_pp73-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de094e688b1c560eaad655c08be2b4f959454bbef79ebc278257a5f96afa3ccd |
|
MD5 | 400916dbcf6dd72cf50f36e7a74ca2db |
|
BLAKE2b-256 | 08422fea2a87cec3ed36bf9eb62596f39abec73ff1ede91a1cf902ae8c457299 |
Hashes for mllint-0.5.1-pp36-pypy36_pp73-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a408b528bcaabcc0697380520d1e02580e3aa005c3f7a43417d72bf3c09888 |
|
MD5 | 32667acd83502cfc9e683761c756af05 |
|
BLAKE2b-256 | 4bcae22e22725116d329616a8dab560c23ed35d31ed493d5a23c6e0284c28f3d |
Hashes for mllint-0.5.1-pp36-pypy36_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed69068c29178ff709e1946577bc8f33e6caa698d37105c08ce95a57af96796 |
|
MD5 | d0cacd058d2c4c9bd2eef917220a90aa |
|
BLAKE2b-256 | e20430e40c31dbb5712da403071657866b8f68db59e021f1276e34c4c87e27a2 |
Hashes for mllint-0.5.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d584e7da327d38775b00834b52563e6d61d9825d429e54cc2990727aa4ca06 |
|
MD5 | be8b6e62ce08107d08f0c59ac5a3541f |
|
BLAKE2b-256 | ba610bf568442a6f91b962a41b56c7dfc9c13c1f41fd18a29b17a09c7157bd06 |
Hashes for mllint-0.5.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaae7eeef6af2fbe1ef07e9498161fe10bb866d5730813614898ff28bccdde34 |
|
MD5 | b7068211748095f37b65edc951f1ea85 |
|
BLAKE2b-256 | 6d1864a983363183fb674e1a824f4b0df7a1b9d35a2d220fecaa50c944e74392 |
Hashes for mllint-0.5.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f255523634b547655a3dd22f0949bf37bffae535648dd108030f34bcbe4faf6 |
|
MD5 | a85df4f12fe19603a24e5b1113f80930 |
|
BLAKE2b-256 | 1083bd045d993872761a12651378fbcc56e1e33d2dcdfbabd01d90aa86047d74 |
Hashes for mllint-0.5.1-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa41b625b301aba23044964989900bd4dca21636b443159db50f135a04f7b88 |
|
MD5 | f868b65a1187be659e8d61cdc4700b1e |
|
BLAKE2b-256 | f4ad0aeb6678eab6bdcbe242dd09aee62f29b2b42a8a662cd63baa52570c7277 |
Hashes for mllint-0.5.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3706c4630b718511d2261924b4e0f0a020f7e1a493a80ce5c13a2ef05c2e0954 |
|
MD5 | 879c6cee98f067cfe2c272b8c974b701 |
|
BLAKE2b-256 | 5b92421d0a09a05d5ae745786499524ff57f650a287bd92bf8cade86f3ed63b5 |
Hashes for mllint-0.5.1-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4c606291854f86c36f145579dd59f17b4bc52afc605a9274ba0cee6dbd3f97 |
|
MD5 | dc88a02979292e10da195f17f7b03509 |
|
BLAKE2b-256 | 37ae4454879d339b651fa764fc86fa3a9044c3d91526d04e196a8c95ba16ef54 |
Hashes for mllint-0.5.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af93eb85f24cf652d04b45efc11170659775e2ddf47a150f9b134c22450254a7 |
|
MD5 | 28c2ceabb6973bc1dd93adefb5a19a5e |
|
BLAKE2b-256 | d4444803aac84192fde11314f02b3ee26f3ef6bd488c29147e77c0a3dbaf1106 |
Hashes for mllint-0.5.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d75d5c28697cadf73e65c3c4fbbe4cf4a0c8bcef430e0e79972bcc3ee0572da |
|
MD5 | a9749e2e7417c21a2ad7f92e01185f18 |
|
BLAKE2b-256 | 8f688a54a208c6b0b56aac9705cb918b3c701eea4d02e402fa3ba47a1da484b8 |
Hashes for mllint-0.5.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4438b981e95996557092a7ff3c6c31c33ec5baa38cae8981c3e587ca97846d3f |
|
MD5 | c8ea29cb67f7265363d791a8b4321cc0 |
|
BLAKE2b-256 | 34efb9d3ec783bb5e5e6929681600de73608b93e9752e8e81a1ef0c19885ed2d |
Hashes for mllint-0.5.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922be45e09dbebd9fb9a5dedd266f0ea9f6d6b4438f5047fb843f81dc91b8b5c |
|
MD5 | 28b492ef5f493ea5d6be1a77c7380914 |
|
BLAKE2b-256 | 05892167e8766e7ca14204229f4702210653517d65ecadb9dd79a065ca119158 |
Hashes for mllint-0.5.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bf85b3b210b01381aeacffdd374e86e30571e475beb3d1f1b7c8ab01e56f04 |
|
MD5 | 29be4e5ae6cf469bf45185f8953889e7 |
|
BLAKE2b-256 | d28ad8ac548bd86b4ee6caf10497288317c5a7e31d0dbc860cb764c221812379 |
Hashes for mllint-0.5.1-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c898156961702abb205f080da850501ffe417cfcba8784d99f46e096bd42f7d |
|
MD5 | b957eafe721baf58423f5e9329595305 |
|
BLAKE2b-256 | ff56bece5471ebc4f554c3c505f583cdb1503a4bb7aa6b0e852e9e90b8b9e3d6 |
Hashes for mllint-0.5.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abcf397fa7a63a5580539836ad8b5f8fe16ca6286ee54cd7ca31eee0a81e7bd |
|
MD5 | 5077d8798d9e663f885b43e3aae23b5d |
|
BLAKE2b-256 | dc44d94322bf9fd6c3abd8d31473797a4d5909278fefc7b1a269cc87ffd046cf |
Hashes for mllint-0.5.1-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 269d5d687c1772ec8ac2c66c7ea0bcc9a1755de902036e755f788533d378c927 |
|
MD5 | 816ed3d01ec0050daae76e27fc4e16a6 |
|
BLAKE2b-256 | 8da234b4c360618d4a030f43ab73e05a4d03e738e86c891804372bebd2f07efc |
Hashes for mllint-0.5.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2abea0599731a047f4ddb6e7c455b63710920b689dcf7290950f0e88a3fc19d |
|
MD5 | a8a67595f2e4a44cd534b9e57ece84f8 |
|
BLAKE2b-256 | 6ab31666f05d37649701cd94162b52acea2f4786c30177e80e8fb4965b8b193e |
Hashes for mllint-0.5.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de828e84bca32a5d2bc27f61e14379364b9e6a7d665b411c6bc3379cbe1302a9 |
|
MD5 | f5cca9b1ca5883a2ecc8f20c8328ab58 |
|
BLAKE2b-256 | b67edbe94b4873e095a9686f75f462cc6374c2088510b4c4c56e56fc0df365c2 |
Hashes for mllint-0.5.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad081dc9aa2b02020353d053c74919fb61a42072af2f4e18aeb6ac373e5b636 |
|
MD5 | 273c370844e7949a7247dd50a2a0940d |
|
BLAKE2b-256 | b3644389929a9fda219f64e36c142c4a2c01659813b6213261fa512fce32994c |
Hashes for mllint-0.5.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b030b3a4195a36c866f7819c984c60dd85ad1197d857497832ba48b725b2d363 |
|
MD5 | 8e83a24512d27fa3bbfb5a1657829596 |
|
BLAKE2b-256 | a85d32dbc30359cdbdcab8da2117660c54ebe7a35d2ae7686c431736fdf3ce1f |
Hashes for mllint-0.5.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6005aa588a8f1dd6d4e51b0dfafc81944eebe2bc97260641396cdbef2f8aa066 |
|
MD5 | 1112ee7db679e61c0b124f368401a9a5 |
|
BLAKE2b-256 | 819d8e737eb4c31e6d8ebbb5893c1cbd984d8a28b5137a56c50e67a7dc3cbd15 |
Hashes for mllint-0.5.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eeb5faaeb4f9a3858312279a0b63ff49fa98b0d64ec60c5e254c135e2e40829 |
|
MD5 | afbd6374a3fcba94b58b6c363abba3f4 |
|
BLAKE2b-256 | a8f5ac4d2305c94a3bc88c7b76e6028c0c88ef7697a5d4155d4cdcccacc9e4f8 |
Hashes for mllint-0.5.1-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51672204b2d3c00aaf7300831df8f662d37c6df26642a92173981b8d2e8d3bbd |
|
MD5 | 1f551e5104908581b2e6987da881718e |
|
BLAKE2b-256 | 5cf7c710b26a0ffc2fdb78ab3f0fee753d6e9a98e3a6ba090ba1684071fb72f1 |
Hashes for mllint-0.5.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499c1ffbb8771994bbe1365f413e616d848eeedebb59b29f0fab272387aa8f42 |
|
MD5 | 42e2953412fb65a38bad1f090ea6da52 |
|
BLAKE2b-256 | 9477b1fb889881728dfb04317d54f26268d201ff2a68cf42ad8e2ff1cc46dea1 |
Hashes for mllint-0.5.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 009af7d23f7fee662762bf5f17624e9b4d95db6f0915d041f2e9e2417723ea17 |
|
MD5 | 9e2d581f0ef79fa992b823144458a14d |
|
BLAKE2b-256 | 135412f187bcd97ce250707de849439e062131725b3fb1d12a5ea37082bd72b7 |
Hashes for mllint-0.5.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83dae018775ff41d2bf43ba81c117bac7c6d13b55330cebb4670cd1ab22fc84 |
|
MD5 | 024d0b91b9a3c6618263af67c77960c1 |
|
BLAKE2b-256 | df68ac36ed53def4c912438cf23f48929eaf3c5d5d8e1a5e71febba924567113 |
Hashes for mllint-0.5.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54cc51a7069d27096eec7235eac9c8b0b01328dac9655bc783433c95dae410ce |
|
MD5 | 742d70580920dc5064b1f63e3b21879d |
|
BLAKE2b-256 | 0194887ee3654ddea40542ba5f1bc8d4e41f4fb5e058ea7326501a62b7dfad98 |
Hashes for mllint-0.5.1-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0879196553021abe8f8e7aa1c86e51b581a5f740bee1f51b29d68ca1c27ee72 |
|
MD5 | ea3438147886a8d2567c5db002fbd8b6 |
|
BLAKE2b-256 | 40b208c9f6e7a47c976e895ad1b662e5eb1b4abd7d1dd72abba7a3ffe77eba3a |
Hashes for mllint-0.5.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f51c35aea1de691e48ce59bd92e14224f6e03bdae1fb04847226066be6acd7c |
|
MD5 | 057b386cddb4d4f9a28c4f0d4db85cdb |
|
BLAKE2b-256 | 0ef9578f548464958c4f0332da5be73b6b31c24e5d98453a568e0fe46c81e735 |
Hashes for mllint-0.5.1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44806fcb6bcc12f03726b15523135547ab36f6c2cda77a42861591a6d3557d89 |
|
MD5 | 8f5947669e7caf42484e6e3bee025233 |
|
BLAKE2b-256 | bec69b4f51a34be8586faa9b35c3f5ff97c621bb20d73ad5a6e3e9984bed7053 |
Hashes for mllint-0.5.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe97de5349a1d60a79c94d35079a80df1f0503de0ec9a1167e0a12a2ea74b235 |
|
MD5 | 5d64dd4c8d13057926e5202b5986ebae |
|
BLAKE2b-256 | 75907480cf63bb8be40eb44e96fe27a0c3d79e6551e8ecabad2f39624e7a1e80 |