{"id":21840271,"url":"https://github.com/zapier/django-linttest","last_synced_at":"2025-04-14T10:51:29.727Z","repository":{"id":57438732,"uuid":"79672351","full_name":"zapier/django-linttest","owner":"zapier","description":"Lint Test is a simple Django app to perform flake8 linting on your project","archived":false,"fork":false,"pushed_at":"2017-06-08T00:34:23.000Z","size":30,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T00:04:56.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zapier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-21T20:55:37.000Z","updated_at":"2019-09-06T06:53:17.000Z","dependencies_parsed_at":"2022-09-08T08:03:05.109Z","dependency_job_id":null,"html_url":"https://github.com/zapier/django-linttest","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapier%2Fdjango-linttest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapier%2Fdjango-linttest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapier%2Fdjango-linttest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapier%2Fdjango-linttest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapier","download_url":"https://codeload.github.com/zapier/django-linttest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550620,"owners_count":21122934,"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-27T21:25:27.947Z","updated_at":"2025-04-14T10:51:29.700Z","avatar_url":"https://github.com/zapier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Lint Test\n\nLint Test is a simple Django app to perform flake8 linting on your project.\nYou'll set a settings.LINT_TEST_SINCE_COMMIT from some commit in your git history.\n\nIt will then check files changed since that commit origin and ensure they lint properly.\nIf any file doesn't lint properly your unit test run will fail.\n\n## Quick start\n-----------\n\n1. `pip install linttest`\n\n1. Add \"linttest\" to your INSTALLED_APPS setting like this::\n\n    ```\n        INSTALLED_APPS = [\n            ...\n        'linttest',\n        ]\n    ```\n\n2. Specify the commit origin in your settings (sh\u003e git log)::\n\n    ```\n        LINT_TEST_SINCE_COMMIT = '\u003ccommit hash\u003e'\n    ```\n\n3. Run the management command::\n\n    ```\n        python manage.py linttest\n\n        or\n\n        python manage.py test linttest\n    ```\n\n4. Fix any files that fail the linting!\n\n\n## Run with your normal tests suite\n---------------------------------\n\n1. Verify installation with the \"Quick Start\" guide\n\n2. Add a test that extends the `LintTestCase` to another test file in your project\n\n    ```\n        from linttest.tests import LintTestCase\n\n\n        class MyLintTests(LintTestCase):\n            pass\n    ```\n\n3. Run the test command::\n\n    ```\n        python manage.py test\n    ```\n\nThis is required for django 1.6 and up because the DiscoveryRunner defaults to just running\ntests in your project.\n\nFor local installation\n-----------------------\n\n1. Git clone...\n\n2. Package it\n\n    ```\n        python setup.py sdist  # rerun this and the next step on change\n    ```\n\n3. From your desired install project - note the relative path - update for your project location\n\n    ```\n        pip install ../linttest/dist/linttest-0.1.tar.gz\n    ```\n\n    or\n\n    ```\n        pip install ../linttest/dist/linttest-0.1.tar.gz --upgrade  # rerun on change\n    ```\n\n4. You can follow the quickstart from there\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapier%2Fdjango-linttest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapier%2Fdjango-linttest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapier%2Fdjango-linttest/lists"}