METADATA 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Metadata-Version: 2.1
  2. Name: pyflakes
  3. Version: 3.1.0
  4. Summary: passive checker of Python programs
  5. Home-page: https://github.com/PyCQA/pyflakes
  6. Author: A lot of people
  7. Author-email: code-quality@python.org
  8. License: MIT
  9. Classifier: Development Status :: 6 - Mature
  10. Classifier: Environment :: Console
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: MIT License
  13. Classifier: Programming Language :: Python
  14. Classifier: Programming Language :: Python :: 3
  15. Classifier: Programming Language :: Python :: 3 :: Only
  16. Classifier: Programming Language :: Python :: Implementation :: CPython
  17. Classifier: Programming Language :: Python :: Implementation :: PyPy
  18. Classifier: Topic :: Software Development
  19. Classifier: Topic :: Utilities
  20. Requires-Python: >=3.8
  21. License-File: LICENSE
  22. ========
  23. Pyflakes
  24. ========
  25. A simple program which checks Python source files for errors.
  26. Pyflakes analyzes programs and detects various errors. It works by
  27. parsing the source file, not importing it, so it is safe to use on
  28. modules with side effects. It's also much faster.
  29. It is `available on PyPI <https://pypi.org/project/pyflakes/>`_
  30. and it supports all active versions of Python: 3.6+.
  31. Installation
  32. ------------
  33. It can be installed with::
  34. $ pip install --upgrade pyflakes
  35. Useful tips:
  36. * Be sure to install it for a version of Python which is compatible
  37. with your codebase: ``python#.# -m pip install pyflakes`` (for example,
  38. ``python3.10 -m pip install pyflakes``)
  39. * You can also invoke Pyflakes with ``python#.# -m pyflakes .`` if you want
  40. to run it for a specific python version.
  41. * If you require more options and more flexibility, you could give a
  42. look to Flake8_ too.
  43. Design Principles
  44. -----------------
  45. Pyflakes makes a simple promise: it will never complain about style,
  46. and it will try very, very hard to never emit false positives.
  47. Pyflakes is also faster than Pylint_. This is
  48. largely because Pyflakes only examines the syntax tree of each file
  49. individually. As a consequence, Pyflakes is more limited in the
  50. types of things it can check.
  51. If you like Pyflakes but also want stylistic checks, you want
  52. flake8_, which combines
  53. Pyflakes with style checks against
  54. `PEP 8`_ and adds
  55. per-project configuration ability.
  56. Mailing-list
  57. ------------
  58. Share your feedback and ideas: `subscribe to the mailing-list
  59. <https://mail.python.org/mailman/listinfo/code-quality>`_
  60. Contributing
  61. ------------
  62. Issues are tracked on `GitHub <https://github.com/PyCQA/pyflakes/issues>`_.
  63. Patches may be submitted via a `GitHub pull request`_.
  64. If you are comfortable doing so, please `rebase your changes`_
  65. so they may be applied to main with a fast-forward merge, and each commit is
  66. a coherent unit of work with a well-written log message. If you are not
  67. comfortable with this rebase workflow, the project maintainers will be happy to
  68. rebase your commits for you.
  69. All changes should include tests and pass flake8_.
  70. .. image:: https://github.com/PyCQA/pyflakes/workflows/Test/badge.svg
  71. :target: https://github.com/PyCQA/pyflakes/actions
  72. :alt: GitHub Actions build status
  73. .. _Pylint: https://pylint.pycqa.org/
  74. .. _flake8: https://pypi.org/project/flake8/
  75. .. _`PEP 8`: https://www.python.org/dev/peps/pep-0008/
  76. .. _`rebase your changes`: https://git-scm.com/book/en/v2/Git-Branching-Rebasing
  77. .. _`GitHub pull request`: https://github.com/PyCQA/pyflakes/pulls
  78. Changelog
  79. ---------
  80. Please see `NEWS.rst <https://github.com/PyCQA/pyflakes/blob/main/NEWS.rst>`_.