[12.0][ADD] l10n_do_accounting and l10n_do_ecf_invoicing modules: implement fiscal number and ECF features #1987
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linting | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - '**.py' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| flake8: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.7 | |
| - run: pip install flake8 | |
| - name: Lint with flake8 | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 . --count --exit-zero --select E9,F63,F7,F82 --ignore E203,E501,W503 \ | |
| --exclude __unported__,__init__.py,examples --show-source --statistics | |
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics | |
| pylint: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: curl https://raw.githubusercontent.com/iterativo-git/dockerdoo/12.0/.devcontainer/.vscode/oca_pylint.cfg -o oca_pylint.cfg | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.7 | |
| - run: pip install pylint_odoo | |
| - run: | | |
| pylint **/*.py --exit-zero --rcfile oca_pylint.cfg --load-plugins pylint_odoo |