Skip to content

nanato12/pychecker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pychecker

GitHub Action for Python code check
Pythonのコードチェック用のGitHub Action

check

  • black
  • flake8
  • mypy
  • isort

このActionでは上記4点が評価されます。

How to use

Write .github/workflows/main.yml.
使用するには.github/workflows/main.ymlに追記してください。

- name: GitHub Action for Python code check
  uses: nanato12/pychecker@master
  with:
      path: './'

Refer to this: main.yml
こちらを参考に: main.yml

Options [required]

Write the options for each check to setup.cfg.
各チェックのオプションはsetup.cfgに記載してください。

If setup.cfg does not exist, each check will conflict.
もし、setup.cfg が存在しない場合、各チェックは競合し失敗します。

Recommended:
おすすめ:

[flake8]
extend-ignore = E203, E501
exclude = __init__.py

[isort]
multi_line_output=3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88

[mypy]
disallow_untyped_calls = True
disallow_untyped_defs = True

For myself :3

docker build . -t pychecker
docker run --workdir /workspace -v $PWD:/workspace pychecker /workspace