pylint.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: Install Ubuntu package dependencies
  16. run: |
  17. sudo apt-get install libsecp256k1-dev
  18. - name: Set up Python ${{ matrix.python-version }}
  19. uses: actions/setup-python@v4
  20. with:
  21. python-version: ${{ matrix.python-version }}
  22. cache: 'pip'
  23. cache-dependency-path: |
  24. setup.cfg
  25. - name: Install Python dependencies
  26. run: |
  27. python3 -m pip install gmpy2 cryptography pynacl ecdsa aiohttp requests pexpect scrypt semantic-version
  28. python3 -m pip install pycryptodomex pysocks pycoin ipaddress varint pylint
  29. python3 -m pip install --no-deps py_ecc==1.6.0 mypy_extensions==0.4.1 monero
  30. python3 setup.py build_ext --inplace
  31. - name: Check the code with Pylint static code analyzer
  32. env:
  33. PYTHONPATH: .
  34. run: |
  35. pylint --errors-only mmgen
  36. pylint --errors-only test
  37. pylint --errors-only examples
  38. pylint --errors-only --disable=relative-beyond-top-level test/cmdtest_py_d