Skip to content

Commit 23b29af

Browse files
committed
Fix CI: remove NUL bytes / convert files to UTF-8, adjust flake8 scope
1 parent 5a2583d commit 23b29af

File tree

540 files changed

+156596
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

540 files changed

+156596
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
== Flake8 License (MIT) ==
2+
3+
Copyright (C) 2011-2013 Tarek Ziade <tarek@ziade.org>
4+
Copyright (C) 2012-2016 Ian Cordasco <graffatcolmingov@gmail.com>
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10+
of the Software, and to permit persons to whom the Software is furnished to do
11+
so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
Metadata-Version: 2.1
2+
Name: flake8
3+
Version: 7.3.0
4+
Summary: the modular source code checker: pep8 pyflakes and co
5+
Home-page: https://github.com/pycqa/flake8
6+
Author: Tarek Ziade
7+
Author-email: tarek@ziade.org
8+
Maintainer: Ian Stapleton Cordasco
9+
Maintainer-email: graffatcolmingov@gmail.com
10+
License: MIT
11+
Classifier: Development Status :: 5 - Production/Stable
12+
Classifier: Environment :: Console
13+
Classifier: Framework :: Flake8
14+
Classifier: Intended Audience :: Developers
15+
Classifier: License :: OSI Approved :: MIT License
16+
Classifier: Programming Language :: Python
17+
Classifier: Programming Language :: Python :: 3
18+
Classifier: Programming Language :: Python :: 3 :: Only
19+
Classifier: Programming Language :: Python :: Implementation :: CPython
20+
Classifier: Programming Language :: Python :: Implementation :: PyPy
21+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
22+
Classifier: Topic :: Software Development :: Quality Assurance
23+
Requires-Python: >=3.9
24+
Description-Content-Type: text/x-rst
25+
License-File: LICENSE
26+
Requires-Dist: mccabe<0.8.0,>=0.7.0
27+
Requires-Dist: pycodestyle<2.15.0,>=2.14.0
28+
Requires-Dist: pyflakes<3.5.0,>=3.4.0
29+
30+
.. image:: https://github.com/PyCQA/flake8/workflows/main/badge.svg
31+
:target: https://github.com/PyCQA/flake8/actions?query=workflow%3Amain
32+
:alt: build status
33+
34+
.. image:: https://results.pre-commit.ci/badge/github/PyCQA/flake8/main.svg
35+
:target: https://results.pre-commit.ci/latest/github/PyCQA/flake8/main
36+
:alt: pre-commit.ci status
37+
38+
.. image:: https://img.shields.io/discord/825463413634891776.svg
39+
:target: https://discord.gg/qYxpadCgkx
40+
:alt: Discord
41+
42+
========
43+
Flake8
44+
========
45+
46+
Flake8 is a wrapper around these tools:
47+
48+
- PyFlakes
49+
- pycodestyle
50+
- Ned Batchelder's McCabe script
51+
52+
Flake8 runs all the tools by launching the single ``flake8`` command.
53+
It displays the warnings in a per-file, merged output.
54+
55+
It also adds a few features:
56+
57+
- files that contain this line are skipped::
58+
59+
# flake8: noqa
60+
61+
- lines that contain a ``# noqa`` comment at the end will not issue warnings.
62+
- you can ignore specific errors on a line with ``# noqa: <error>``, e.g.,
63+
``# noqa: E234``. Multiple codes can be given, separated by comma. The ``noqa`` token is case insensitive, the colon before the list of codes is required otherwise the part after ``noqa`` is ignored
64+
- Git and Mercurial hooks
65+
- extendable through ``flake8.extension`` and ``flake8.formatting`` entry
66+
points
67+
68+
69+
Quickstart
70+
==========
71+
72+
See our `quickstart documentation
73+
<https://flake8.pycqa.org/en/latest/index.html#quickstart>`_ for how to install
74+
and get started with Flake8.
75+
76+
77+
Frequently Asked Questions
78+
==========================
79+
80+
Flake8 maintains an `FAQ <https://flake8.pycqa.org/en/latest/faq.html>`_ in its
81+
documentation.
82+
83+
84+
Questions or Feedback
85+
=====================
86+
87+
If you have questions you'd like to ask the developers, or feedback you'd like
88+
to provide, feel free to use the mailing list: code-quality@python.org
89+
90+
We would love to hear from you. Additionally, if you have a feature you'd like
91+
to suggest, the mailing list would be the best place for it.
92+
93+
94+
Links
95+
=====
96+
97+
* `Flake8 Documentation <https://flake8.pycqa.org/en/latest/>`_
98+
99+
* `GitHub Project <https://github.com/pycqa/flake8>`_
100+
101+
* `All (Open and Closed) Issues
102+
<https://github.com/pycqa/flake8/issues?q=is%3Aissue>`_
103+
104+
* `Code-Quality Archives
105+
<https://mail.python.org/mailman/listinfo/code-quality>`_
106+
107+
* `Code of Conduct
108+
<https://flake8.pycqa.org/en/latest/internal/contributing.html#code-of-conduct>`_
109+
110+
* `Getting Started Contributing
111+
<https://flake8.pycqa.org/en/latest/internal/contributing.html>`_
112+
113+
114+
Maintenance
115+
===========
116+
117+
Flake8 was created by Tarek Ziadé and is currently maintained by `anthony sottile
118+
<https://github.com/sponsors/asottile>`_ and `Ian Cordasco
119+
<https://www.coglib.com/~icordasc/>`_
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
../../Scripts/flake8.exe,sha256=5yH1nnyvNMIgKQgkZDVzME4dOHWwwNRx4OUSvrSiGLM,108394
2+
flake8-7.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3+
flake8-7.3.0.dist-info/LICENSE,sha256=5G355Zzr--CxRJLlzeNB6OxC0lKpm2pYP8RgiGOl2r4,1172
4+
flake8-7.3.0.dist-info/METADATA,sha256=wuYh3RXlnqyIobVsLw2lvTKNXZV57AIdcCYGYoHMQdQ,3805
5+
flake8-7.3.0.dist-info/RECORD,,
6+
flake8-7.3.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7+
flake8-7.3.0.dist-info/WHEEL,sha256=qUzzGenXXuJTzyjFah76kDVqDvnk-YDzY00svnrl84w,109
8+
flake8-7.3.0.dist-info/entry_points.txt,sha256=DL_4PPVWWudFtPjS-7AX_wtyFGt0Y9VN0KvNjCejS7s,422
9+
flake8-7.3.0.dist-info/top_level.txt,sha256=6Tlo_i7chAhjqQkybdwPfClaqi0-dkJh_2o1PSn1aBM,7
10+
flake8/__init__.py,sha256=oSIIIRdtdw4u8BDJxdkzW4sVgB2UIXqQ19tYIUP07Ks,1943
11+
flake8/__main__.py,sha256=lkxpQWWXjApgesUxZVYW3xTGTT9u0lj2DpFeQO1-dWs,178
12+
flake8/__pycache__/__init__.cpython-312.pyc,,
13+
flake8/__pycache__/__main__.cpython-312.pyc,,
14+
flake8/__pycache__/_compat.cpython-312.pyc,,
15+
flake8/__pycache__/checker.cpython-312.pyc,,
16+
flake8/__pycache__/defaults.cpython-312.pyc,,
17+
flake8/__pycache__/discover_files.cpython-312.pyc,,
18+
flake8/__pycache__/exceptions.cpython-312.pyc,,
19+
flake8/__pycache__/processor.cpython-312.pyc,,
20+
flake8/__pycache__/statistics.cpython-312.pyc,,
21+
flake8/__pycache__/style_guide.cpython-312.pyc,,
22+
flake8/__pycache__/utils.cpython-312.pyc,,
23+
flake8/__pycache__/violation.cpython-312.pyc,,
24+
flake8/_compat.py,sha256=1D_azjYP3Bulb4qt8BHRnzPo-VjvMx81jLc7CZ8Ey0o,597
25+
flake8/api/__init__.py,sha256=xgaqH5ehF5EeZ6I35bP5uj9OzASv9a4AcFNHxB4oXuQ,241
26+
flake8/api/__pycache__/__init__.cpython-312.pyc,,
27+
flake8/api/__pycache__/legacy.cpython-312.pyc,,
28+
flake8/api/legacy.py,sha256=U2czkZScuVhnMJ9MzDBlng4qfg9LGsEI0vjosXvrXPY,6898
29+
flake8/checker.py,sha256=DvYImOnKzCSYcQG0iu8Jy5W_OXhvitFNsaUHygxCNZI,22779
30+
flake8/defaults.py,sha256=al0IFZ6rOdIva_XgueGGGqdMaf9fTtHwlY3dsAd_2Fo,1109
31+
flake8/discover_files.py,sha256=VaJ3ysdbUhPH1m3g5i1Vn08SzIPKnzs8_t25zL_V3F4,2575
32+
flake8/exceptions.py,sha256=klokjovJklHojNwn-NFTlMp_PEVLMAYXzc9umIQ-bI8,2393
33+
flake8/formatting/__init__.py,sha256=GeU-7Iwf3TnGHiGdt3ksVMbbs6a6xa2f3k9wkqY-6WA,97
34+
flake8/formatting/__pycache__/__init__.cpython-312.pyc,,
35+
flake8/formatting/__pycache__/_windows_color.cpython-312.pyc,,
36+
flake8/formatting/__pycache__/base.cpython-312.pyc,,
37+
flake8/formatting/__pycache__/default.cpython-312.pyc,,
38+
flake8/formatting/_windows_color.py,sha256=Z0z0fsKONjmb9Z15D8BCdBGm9nJ5amfvCBdsy1FVO1s,2022
39+
flake8/formatting/base.py,sha256=CdEVQBWYpEyV9NxarXFvcMpopmADT4LMv2dWlmPwSwU,7356
40+
flake8/formatting/default.py,sha256=ubZCBQswdz-cq661BMzHRCIU5yGpeGo_5kKqmhqPVXs,3057
41+
flake8/main/__init__.py,sha256=mr4YPJVODVERm_0nz7smskE1RuVopp1LS7N-BFVGwuk,98
42+
flake8/main/__pycache__/__init__.cpython-312.pyc,,
43+
flake8/main/__pycache__/application.cpython-312.pyc,,
44+
flake8/main/__pycache__/cli.cpython-312.pyc,,
45+
flake8/main/__pycache__/debug.cpython-312.pyc,,
46+
flake8/main/__pycache__/options.cpython-312.pyc,,
47+
flake8/main/application.py,sha256=yyn8DGJiKg_9ZDfNn2Fo6njQCnWbracl_U3ICbgFRN4,7958
48+
flake8/main/cli.py,sha256=L8KfBy5AKgAi37IIao2BMd37GfSjpttj2KN1iZJ3T70,608
49+
flake8/main/debug.py,sha256=Wcn1ENm_xrCopsv8_w744kt-5wcA5czo4kyW18MBjrw,911
50+
flake8/main/options.py,sha256=Dl-7_GubDoeGj1UNb5KDZk4qwTpDpN-etp-Z3U9mp00,11008
51+
flake8/options/__init__.py,sha256=cpxQPjG8gcBygJ4CB8bRgDhShPncwOT5Zq535479B00,496
52+
flake8/options/__pycache__/__init__.cpython-312.pyc,,
53+
flake8/options/__pycache__/aggregator.cpython-312.pyc,,
54+
flake8/options/__pycache__/config.cpython-312.pyc,,
55+
flake8/options/__pycache__/manager.cpython-312.pyc,,
56+
flake8/options/__pycache__/parse_args.cpython-312.pyc,,
57+
flake8/options/aggregator.py,sha256=aSBpKP8J0KmqsoylKE-fG709zEkQA2sIZ66sT3OUgww,1972
58+
flake8/options/config.py,sha256=Oj-OO89ZbNQtFUHcHDZ24xeIT2gTfAXrcut2cneVhz4,4572
59+
flake8/options/manager.py,sha256=xd4xoHJurOxr_nlni3UqW5V9Uf7xcixnik1-k4E9Npo,11534
60+
flake8/options/parse_args.py,sha256=BDZopPAGcSterch6zZLkP_Z48u0OzYQ9wGZcqaxwR1k,2171
61+
flake8/plugins/__init__.py,sha256=9EaF2MX-tp9U9byByvmF05RsggH041H6yPH31Q4O-lc,92
62+
flake8/plugins/__pycache__/__init__.cpython-312.pyc,,
63+
flake8/plugins/__pycache__/finder.cpython-312.pyc,,
64+
flake8/plugins/__pycache__/pycodestyle.cpython-312.pyc,,
65+
flake8/plugins/__pycache__/pyflakes.cpython-312.pyc,,
66+
flake8/plugins/__pycache__/reporter.cpython-312.pyc,,
67+
flake8/plugins/finder.py,sha256=HPvXPWOh0RHtiMR6X0Lx9Od7WQUjZr0jfdId2ejThDY,11124
68+
flake8/plugins/pycodestyle.py,sha256=XSCIhIrpTZy9qm_7iVi2a1IW2su8zmABz9To4Z87UgQ,5665
69+
flake8/plugins/pyflakes.py,sha256=DGCSL5hOQVOLk4IedrWdmXccBbGxeu-i74BSmTij7PU,3893
70+
flake8/plugins/reporter.py,sha256=0jr3UKehzAakdX9sx-Z8t0hAcKPGtTTwNh4hdijKqgE,1241
71+
flake8/processor.py,sha256=tBTyhj4GNCFcYlt39s94yQQRZH68lF4ex2FTKAcwlFc,16856
72+
flake8/statistics.py,sha256=wf7j0j0Ve5UPNBlMCdmJuIQKl0ZHU5y86tOET19AX10,4355
73+
flake8/style_guide.py,sha256=MytZ0QnWQ9AQ80EerDG6_x0sbL6RJ5HAbsaLVYZrbA0,14346
74+
flake8/utils.py,sha256=0LsB48sRgGlsJKcm5qJB2HI1DO3pHprmmemxRnjAGAs,8173
75+
flake8/violation.py,sha256=qyoU_lxzh3lXQW-gZUHTEiySIOrRqKD4iZlQsaQBj1E,2035

.venv/Lib/site-packages/flake8-7.3.0.dist-info/REQUESTED

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Wheel-Version: 1.0
2+
Generator: setuptools (74.1.2)
3+
Root-Is-Purelib: true
4+
Tag: py2-none-any
5+
Tag: py3-none-any
6+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[console_scripts]
2+
flake8 = flake8.main.cli:main
3+
4+
[flake8.extension]
5+
E = flake8.plugins.pycodestyle:pycodestyle_logical
6+
F = flake8.plugins.pyflakes:FlakesChecker
7+
W = flake8.plugins.pycodestyle:pycodestyle_physical
8+
9+
[flake8.report]
10+
default = flake8.formatting.default:Default
11+
pylint = flake8.formatting.default:Pylint
12+
quiet-filename = flake8.formatting.default:FilenameOnly
13+
quiet-nothing = flake8.formatting.default:Nothing
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
"""Top-level module for Flake8.
2+
3+
This module
4+
5+
- initializes logging for the command-line tool
6+
- tracks the version of the package
7+
- provides a way to configure logging for the command-line tool
8+
9+
.. autofunction:: flake8.configure_logging
10+
11+
"""
12+
from __future__ import annotations
13+
14+
import logging
15+
import sys
16+
17+
LOG = logging.getLogger(__name__)
18+
LOG.addHandler(logging.NullHandler())
19+
20+
__version__ = "7.3.0"
21+
__version_info__ = tuple(int(i) for i in __version__.split(".") if i.isdigit())
22+
23+
_VERBOSITY_TO_LOG_LEVEL = {
24+
# output more than warnings but not debugging info
25+
1: logging.INFO, # INFO is a numerical level of 20
26+
# output debugging information
27+
2: logging.DEBUG, # DEBUG is a numerical level of 10
28+
}
29+
30+
LOG_FORMAT = (
31+
"%(name)-25s %(processName)-11s %(relativeCreated)6d "
32+
"%(levelname)-8s %(message)s"
33+
)
34+
35+
36+
def configure_logging(
37+
verbosity: int,
38+
filename: str | None = None,
39+
logformat: str = LOG_FORMAT,
40+
) -> None:
41+
"""Configure logging for flake8.
42+
43+
:param verbosity:
44+
How verbose to be in logging information.
45+
:param filename:
46+
Name of the file to append log information to.
47+
If ``None`` this will log to ``sys.stderr``.
48+
If the name is "stdout" or "stderr" this will log to the appropriate
49+
stream.
50+
"""
51+
if verbosity <= 0:
52+
return
53+
54+
verbosity = min(verbosity, max(_VERBOSITY_TO_LOG_LEVEL))
55+
log_level = _VERBOSITY_TO_LOG_LEVEL[verbosity]
56+
57+
if not filename or filename in ("stderr", "stdout"):
58+
fileobj = getattr(sys, filename or "stderr")
59+
handler_cls: type[logging.Handler] = logging.StreamHandler
60+
else:
61+
fileobj = filename
62+
handler_cls = logging.FileHandler
63+
64+
handler = handler_cls(fileobj)
65+
handler.setFormatter(logging.Formatter(logformat))
66+
LOG.addHandler(handler)
67+
LOG.setLevel(log_level)
68+
LOG.debug(
69+
"Added a %s logging handler to logger root at %s", filename, __name__
70+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""Module allowing for ``python -m flake8 ...``."""
2+
from __future__ import annotations
3+
4+
from flake8.main.cli import main
5+
6+
if __name__ == "__main__":
7+
raise SystemExit(main())

0 commit comments

Comments
 (0)