{"id":20037725,"url":"https://github.com/openedx/edx-lint","last_synced_at":"2025-05-16T11:03:47.277Z","repository":{"id":26551135,"uuid":"30004785","full_name":"openedx/edx-lint","owner":"openedx","description":"Custom tooling for pylint and other repo management tools","archived":false,"fork":false,"pushed_at":"2025-04-07T03:20:46.000Z","size":3356,"stargazers_count":49,"open_issues_count":20,"forks_count":26,"subscribers_count":108,"default_branch":"master","last_synced_at":"2025-04-09T06:06:12.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openedx.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-29T05:14:33.000Z","updated_at":"2025-03-04T15:42:44.000Z","dependencies_parsed_at":"2023-01-16T23:30:38.351Z","dependency_job_id":"8a63423f-009d-4322-b44e-6517a00e2174","html_url":"https://github.com/openedx/edx-lint","commit_stats":{"total_commits":415,"total_committers":48,"mean_commits":8.645833333333334,"dds":0.6337349397590362,"last_synced_commit":"a3ab407bd01e154685e770cc9648bc02d767f894"},"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openedx%2Fedx-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openedx%2Fedx-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openedx%2Fedx-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openedx%2Fedx-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openedx","download_url":"https://codeload.github.com/openedx/edx-lint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T10:21:22.897Z","updated_at":"2025-05-16T11:03:47.249Z","avatar_url":"https://github.com/openedx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\nedx-lint\n========\n\n| |CI|_\n\nA collection of code quality tools:\n\n- A few pylint plugins to check for quality issues pylint misses.\n\n- A command-line tool to generate config files like pylintrc from a master\n  file (part of edx_lint), and a repo-specific tweaks file.\n\n\nUsing edx_lint\n==============\n\nThe ``edx_lint`` command can generate config files from its own master file. Install\nthe package using ``pip``::\n\n    $ pip install edx-lint\n\nThe ``write`` sub-command will write a config file based on the contents of the\nedx_lint master file::\n\n    $ edx_lint write pylintrc\n\nThe file written contains a hash of its contents, to detect subsequent editing.\n``edx_lint`` will detect this when it next tries to write the file.  If editing\nis detected, the edited file will be moved aside so it can be compared to the\nnewly written file.\n\nHandling newly introduced lint violations\n-----------------------------------------\n\nNew potential lint violations will be communicated with a major version bump.\n\nIf you run into new lint violations during an upgrade of edx-lint, your options include:\n\n#. Fixing the violations immediately, or\n#. `Using lint-amnesty`_ and fixing at a later time, or\n#. `Customizing edx_lint`_ to permanently ignore the violations.\n\nUsing lint-amnesty\n------------------\n\nThe ``lint-amnesty`` command can be used to squash all existing pylint errors\nin a codebase, so that from then the repository can maintain pylint-cleanliness.\nInstall the package using ``pip``::\n\n    $ pip install edx-lint\n\nThe ``lint-amnesty`` command expects pylint errors in the ``--output-format=parseable``\nformat::\n\n    $ pylint my.python.package --output-format=parseable | lint-amnesty\n\nThis will add comments for every existing pylint violation that look like::\n\n    # pylint: disable=some-error  # lint-amnesty\n\nIt will also remove any existing suppressions that pylint flags as being ``useless-suppressions``.\n\n\nCustomizing edx_lint\n--------------------\n\nYou can customize the resulting pylintrc file by creating a pylintrc_tweaks file in the\ncurrent directory before running the ``write`` sub-command.  It should contain only the\nsettings you want to override.\n\n**Note:** If your project is not a Django project, you'll want to disable the Django plugins with\nyour pylintrc_tweaks file::\n\n    [MASTER]\n    load-plugins = edx_lint.pylint\n\n\nDeveloping edx_lint\n===================\n\nTo run the tests::\n\n    $ make requirements\n    $ make test\n\nTo manually test your pylint plugin, create a custom module and run pylint with a selected set of enabled message symbols. For instance::\n\n    pylint --load-plugins=edx_lint.pylint --disable=all --enable=feature-toggle-needs-doc path/to/my/custom/module.py\n\nLicense\n-------\n\nThe code in this repository is licensed under Apache 2.0.  Please see\n``LICENSE.txt`` for details.\n\nHow To Contribute\n-----------------\n\nContributions are very welcome.\n\nPlease read `How To Contribute \u003chttps://github.com/openedx/.github/blob/master/CONTRIBUTING.md\u003e`_ for details.\n\n\nGetting Help\n------------\n\nThe Open edX project has resources for developer support on the `Getting Help`_ page.\n\n\n.. _Getting Help: https://open.edx.org/getting-help\n\n.. |CI| image:: https://github.com/openedx/edx-lint/workflows/Python%20CI/badge.svg?branch=master\n.. _CI: https://github.com/openedx/edx-lint/actions?query=workflow%3A%22Python+CI%22\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenedx%2Fedx-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenedx%2Fedx-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenedx%2Fedx-lint/lists"}