pylint.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: pylint
  2. on:
  3. push:
  4. paths:
  5. - '.github/workflows/pylint.yaml'
  6. - '**.py'
  7. jobs:
  8. test:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. python-version: ["3.9","3.10","3.11"]
  13. steps:
  14. - uses: actions/checkout@v4
  15. - name: Set up Python ${{ matrix.python-version }}
  16. uses: actions/setup-python@v4
  17. with:
  18. python-version: ${{ matrix.python-version }}
  19. cache: 'pip'
  20. cache-dependency-path: |
  21. setup.cfg
  22. - name: Install Python dependencies
  23. run: |
  24. python3 -m pip install gmpy2 cryptography pynacl ecdsa aiohttp requests pexpect scrypt semantic-version
  25. python3 -m pip install pycryptodomex pysocks pycoin ipaddress varint pylint
  26. python3 -m pip install --no-deps py_ecc==1.6.0 mypy_extensions==0.4.1 monero
  27. - name: Check the code with Pylint static code analyzer
  28. env:
  29. PYTHONPATH: .
  30. run: |
  31. pylint --errors-only mmgen
  32. pylint --errors-only test
  33. pylint --errors-only examples
  34. pylint --errors-only --disable=relative-beyond-top-level test/cmdtest_py_d