🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb But (José) : transformer tout le code en bions + ploxions du xerboxion. La carte de digestion vit au labo : /yunohost-digest.json
This commit is contained in:
58
.github/workflows/auto-lint.yml
vendored
Normal file
58
.github/workflows/auto-lint.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
name: Run code lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
python-lint:
|
||||
name: Python lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.11
|
||||
|
||||
- name: Install tox and any other packages
|
||||
run: pip install tox toml pyyaml
|
||||
|
||||
- if: success() || failure()
|
||||
run: tox -e py311-lint
|
||||
|
||||
- if: success() || failure()
|
||||
run: tox -e py311-invalidcode
|
||||
|
||||
- if: success() || failure()
|
||||
run: tox -e py311-mypy
|
||||
|
||||
- name: Check i18n keys
|
||||
if: success() || failure()
|
||||
run: python3 maintenance/missing_i18n_keys.py check
|
||||
|
||||
|
||||
bash-lint:
|
||||
name: Bash lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Run ShellCheck
|
||||
uses: salamandar/action-shellcheck@master
|
||||
with:
|
||||
additional_files: |
|
||||
bin/yunoprompt
|
||||
debian/postinst
|
||||
debian/postrm
|
||||
debian/prerm
|
||||
hooks/*/*
|
||||
tests
|
||||
helpers/helpers.v2.1.d/*
|
||||
|
||||
ignore_paths:
|
||||
tests/test_helpers.v2.d
|
||||
helpers/vendor
|
||||
src/vendor
|
||||
Reference in New Issue
Block a user