{"id":15432337,"url":"https://github.com/dciborow/pyaction","last_synced_at":"2025-10-18T19:37:30.986Z","repository":{"id":40550578,"uuid":"484850319","full_name":"dciborow/pyaction","owner":"dciborow","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-18T11:48:56.000Z","size":67,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T01:48:13.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/dciborow.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":"2022-04-23T20:30:30.000Z","updated_at":"2022-05-09T18:19:58.000Z","dependencies_parsed_at":"2022-07-31T23:38:54.296Z","dependency_job_id":null,"html_url":"https://github.com/dciborow/pyaction","commit_stats":{"total_commits":71,"total_committers":1,"mean_commits":71.0,"dds":0.0,"last_synced_commit":"247a6d512e95a3dbaf2f1c796eb46a1ae9271bd7"},"previous_names":[],"tags_count":28,"template":true,"template_full_name":"dciborow/action-pylint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dciborow%2Fpyaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dciborow%2Fpyaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dciborow%2Fpyaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dciborow%2Fpyaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dciborow","download_url":"https://codeload.github.com/dciborow/pyaction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517923,"owners_count":20951715,"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-10-01T18:26:06.766Z","updated_at":"2025-10-18T19:37:30.924Z","avatar_url":"https://github.com/dciborow.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-action\n[![Test](https://github.com/dciborow/pyaction/workflows/Test/badge.svg)](https://github.com/dciborow/pyaction/actions?query=workflow%3ATest)\n[![reviewdog](https://github.com/dciborow/pyaction/workflows/reviewdog/badge.svg)](https://github.com/dciborow/pyaction/actions?query=workflow%3Areviewdog)\n[![depup](https://github.com/dciborow/pyaction/workflows/depup/badge.svg)](https://github.com/dciborow/pyaction/actions?query=workflow%3Adepup)\n[![release](https://github.com/dciborow/pyaction/workflows/release/badge.svg)](https://github.com/dciborow/pyaction/actions?query=workflow%3Arelease)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/dciborow/pyaction?logo=github\u0026sort=semver)](https://github.com/dciborow/pyaction/releases)\n[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github\u0026link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)\n\nThis repo contains a action to run various Python tools including:\n- [bandit](https://pypi.org/project/bandit)\n- [black](https://pypi.org/project/black)\n- [flake8](https://pypi.org/project/flake8)\n- [pylint](https://pypi.org/project/pylint)\n- [pyright](https://pypi.org/project/pyright)\n- [pytest](https://pypi.org/project/pytest)\n\n## Input\n\n```yaml\ninputs:\n  black:\n    description: |\n      Run Black\n      Default is false.\n    default: false\n  bandit:\n    description: |\n      Run Bandit\n      Default is false.\n    default: false\n  pylint:\n    description: |\n      Run Pylint\n      Default is false.\n    default: false\n  pyright:\n    description: |\n      Run Pyright\n      Default is false.\n    default: false\n  flake8:\n    description: |\n      Run Flake8\n      Default is false.\n    default: false\n  testing:\n    description: |\n      Run tests with PyTest\n      Default is false.\n    default: false\n  publish:\n    description: |\n      Publish to PyPi\n      Default is false\n    default: false\n  publish_url:\n    description: |\n      PyPi Target. Use this to point to private or test locations.      \n      Default https://pypi.org\n    defualt: 'https://pypi.org'\n  github_token:\n    description: 'GITHUB_TOKEN'\n    default: '${{ github.token }}'\n  workdir:\n    description: 'Working directory relative to the root directory.'\n    default: 'src'\n  ### Flags for reviewdog ###\n  level:\n    description: 'Report level for reviewdog [info,warning,error]'\n    default: 'error'\n  reporter:\n    description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'\n    default: 'github-pr-check'\n  filter_mode:\n    description: |\n      Filtering mode for the reviewdog command [added,diff_context,file,nofilter].\n      Default is added.\n    default: 'added'\n  fail_on_error:\n    description: |\n      Exit code for reviewdog when errors are found [true,false]\n      Default is `false`.\n    default: 'false'\n  reviewdog_flags:\n    description: 'Additional reviewdog flags'\n    default: ''\n  toml:\n    description: |\n      pyproject.toml location.\n      Default pyproject.toml\n    default: 'pyproject.toml'\n  pylint_rc:\n    description: '.pylintrc configuration file'\n    default: '.pylintrc'\n```\n\n## Usage\n\n```yaml\nname: Pull Request\non:\n  push:\n    branches: [ main ]\n  pull_request:\n    branches: [ main ]\n  workflow_dispatch:\n\njobs:\n  linting:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Black\n        uses: dciborow/pyaction@0.0.13\n        with:\n          black: true\n\n      - name: Bandit\n        uses: dciborow/pyaction@0.0.13\n        with:          \n          bandit: true\n\n      - name: Pylint\n        uses: dciborow/pyaction@0.0.13\n        with:\n          pylint: true\n          \n      - name: Pyright\n        uses: dciborow/pyaction@0.0.13\n        with:          \n          pyright: true\n          \n      - name: Flake8\n        uses: dciborow/pyaction@0.0.13\n        with:          \n          flake8: true\n\n  testing:\n    runs-on: ubuntu-latest\n    steps:    \n      - name: Pytest\n        uses: dciborow/pyaction@0.0.13\n        with:          \n          testing: true\n```\n\n## Development\n\n### Release\n\n#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)\nYou can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).\nPushing tag manually by yourself also work.\n\n#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)\n\nThis action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.\nref: https://help.github.com/en/articles/about-actions#versioning-your-action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdciborow%2Fpyaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdciborow%2Fpyaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdciborow%2Fpyaction/lists"}