* enable sparseCheckout, moving github actions from docker to raw shell * fix missing known_hosts while setting ssh priv key * fix build.yml * add ssh key to upload just in time * fixing rsync syntax * fix build.yml * try to fix build.yml again * testing rsync * test rsync again * add linters * add Black Python linter to submodules * add Black submodule * add working python linter target, dirty file list * up toolchain to version 4 * up toolchain to ver 5 * up toolchain version to 6 * fbt: using black 22.6.0 * remove Black submodule, up toolchain to ver 7 * fbt: added lint_py, format_py targets * add pvs_studio workflow * fix pvs_studio segfault * fix pvs_studio command * fix pvs_studio command 2 * show env before run pvs_studio * try to debug pvs_studio * try to strace pvs_studio.. * Add FBT_TOOLCHAIN_PATH, MacOS Rosseta check, and ignore non-x86_64 linux architectures * prevent redownloading toolchain on github-runners * fix toolchain download exitcode * add strace to debug pvs_studio segfault * disable strace to catch full code dump * Add './fbt cli' target to access Flipper CLI via PySerial * remove pvs_studio from this PR * removing clang-format from toolchain due errors * make source easy, and fix some mistakes found by @hedger * Add check_submodules workflow, some fixes * fixing mistakes Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			639 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			639 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: 'Python Lint'
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - dev
 | 
						|
      - "release*"
 | 
						|
    tags:
 | 
						|
      - '*'
 | 
						|
  pull_request:
 | 
						|
 | 
						|
jobs:
 | 
						|
  lint_python:
 | 
						|
    runs-on: [self-hosted,FlipperZeroShell]
 | 
						|
    steps:
 | 
						|
      - name: 'Decontaminate previous build leftovers'
 | 
						|
        run: |
 | 
						|
          if [ -d .git ]
 | 
						|
          then
 | 
						|
            git submodule status \
 | 
						|
              || git checkout `git rev-list --max-parents=0 HEAD | tail -n 1`
 | 
						|
          fi
 | 
						|
 | 
						|
      - name: 'Checkout code'
 | 
						|
        uses: actions/checkout@v2
 | 
						|
        with:
 | 
						|
          fetch-depth: 0
 | 
						|
 | 
						|
      - name: 'Check code formatting'
 | 
						|
        run: SET_GH_OUTPUT=1 FBT_TOOLCHAIN_PATH=/opt ./fbt lint_py
 |