{"id":20988865,"url":"https://github.com/meanmail-dev/flake8-local-import","last_synced_at":"2025-05-14T18:31:37.373Z","repository":{"id":50752459,"uuid":"287908870","full_name":"meanmail-dev/flake8-local-import","owner":"meanmail-dev","description":"Python 3 check local import for flake8","archived":false,"fork":false,"pushed_at":"2021-10-28T09:30:03.000Z","size":23,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-05T07:19:58.075Z","etag":null,"topics":["flake8","import","plugin","pypi","python"],"latest_commit_sha":null,"homepage":"https://meanmail.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meanmail-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2020-08-16T09:02:38.000Z","updated_at":"2021-05-31T15:13:55.000Z","dependencies_parsed_at":"2022-09-10T14:22:58.641Z","dependency_job_id":null,"html_url":"https://github.com/meanmail-dev/flake8-local-import","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanmail-dev%2Fflake8-local-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanmail-dev%2Fflake8-local-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanmail-dev%2Fflake8-local-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanmail-dev%2Fflake8-local-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meanmail-dev","download_url":"https://codeload.github.com/meanmail-dev/flake8-local-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225304585,"owners_count":17453183,"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":["flake8","import","plugin","pypi","python"],"created_at":"2024-11-19T06:22:59.540Z","updated_at":"2024-11-19T06:23:00.201Z","avatar_url":"https://github.com/meanmail-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flake8-local-import\n[![Downloads](https://pepy.tech/badge/flake8-local-import/month)](https://pepy.tech/project/flake8-local-import)\n![PyPI](https://img.shields.io/pypi/v/flake8-local-import)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-local-import)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/flake8-local-import)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/flake8-local-import)\n\nPython 3 check local import for flake8\n\n# Installation\n\n```bash\npip install flake8-local-import\n```\n\n# Configuration\n\nYou will want to set the `app-import-names` option to a comma separated\nlist of names that should be considered local to your application. Note that\nrelative imports are always considered local.\n\n\n# Example\n\n```python3\n#  Error\ndef func():\n    statement\n\n    from app_package import A   # LI100 Local import must be at the beginning of the method body\n\n\n#  Error\ndef func():\n    statement\n\n    from app_package import A   # LI100 Local import must be at the beginning of the method body\n\n\n# Good\ndef func():\n    from app_package import A\n\n    statement\n\n```\n\n\n# Error codes\n\n|code|description|\n|---|---|\n|LI100|Local import must be at the beginning of the method body|\n|LI101|Packages from external modules should not be imported locally|\n|LI102|Packages from standard modules should not be imported locally|\n\n\n# Links\n\nhttps://github.com/meanmail-dev/flake8-local-import\n\nhttps://meanmail.dev/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeanmail-dev%2Fflake8-local-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeanmail-dev%2Fflake8-local-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeanmail-dev%2Fflake8-local-import/lists"}