{"id":15350597,"url":"https://github.com/gaul/flake8-kw-only-args","last_synced_at":"2025-03-27T19:19:55.071Z","repository":{"id":144978003,"uuid":"148247123","full_name":"gaul/flake8-kw-only-args","owner":"gaul","description":"Flake8 plugin that checks for default arguments that positional parameters can unintentionally override","archived":false,"fork":false,"pushed_at":"2020-12-03T23:27:15.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T21:53:31.459Z","etag":null,"topics":["flake8","flake8-plugin","python","python3","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaul.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T02:13:57.000Z","updated_at":"2021-05-22T08:06:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"aababb60-7342-4e70-ba2b-f6b08c7b69a2","html_url":"https://github.com/gaul/flake8-kw-only-args","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"29120a9e70ce8e8bbd9ae7479e60d15cdba232e5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Fflake8-kw-only-args","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Fflake8-kw-only-args/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Fflake8-kw-only-args/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Fflake8-kw-only-args/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaul","download_url":"https://codeload.github.com/gaul/flake8-kw-only-args/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245907556,"owners_count":20691956,"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","flake8-plugin","python","python3","static-analysis"],"created_at":"2024-10-01T11:58:48.242Z","updated_at":"2025-03-27T19:19:55.047Z","avatar_url":"https://github.com/gaul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flake8-kw-only-args\n\nA [flake8](http://flake8.pycqa.org/en/latest/) plugin that checks for default\narguments like:\n\n```python\ndef default(key=value):\n    ...\n```\n\nPositional parameters can unintentionally override these arguments.  Instead\nuse the safer kw-only argument equivalent:\n\n```python\ndef kw_only(*, key=value):\n    ...\n```\n\n## Install\n\nInstall with `pip`:\n\n```ShellSession\n$ pip install flake8-kw-only-args\n```\n\nYou can check that `flake8` has picked it up by looking for `flake8-kw-only-args`\nin the output of `--version`:\n\n```ShellSession\n$ flake8 --version\n2.6.2 (pycodestyle: 2.0.0, flake8-kw-only-args: 1.0.0, pyflakes: 1.2.3, mccabe: 0.5.0) CPython 2.7.11+ on Linux\n```\n\n\n## Warnings\n\nThis plugin add new flake8 warning:\n\n- `K801`: non-kw-only argument\n\n\n## Requirements\n\n* Python 3.x (tested on 3.5, 3.6, and 3.7)\n* flake8 or pycodestyle\n\n\n# References\n\n* [PEP 3102 -- Keyword-Only Arguments](https://www.python.org/dev/peps/pep-3102/)\n\n\n## Licence\n\nBSD license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaul%2Fflake8-kw-only-args","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaul%2Fflake8-kw-only-args","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaul%2Fflake8-kw-only-args/lists"}