-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0edfc88
commit 97445fd
Showing
146 changed files
with
21,160 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/Users/johnculkin/repos/AWSCookbook/Databases/.venv/bin/python | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
from flake8.main.cli import main | ||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/Users/johnculkin/repos/AWSCookbook/Databases/.venv/bin/python | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
from pycodestyle import _main | ||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(_main()) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/Users/johnculkin/repos/AWSCookbook/Databases/.venv/bin/python | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
from pyflakes.api import main | ||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
Binary file not shown.
Binary file added
BIN
+71 KB
.venv/lib/python3.9/site-packages/__pycache__/pycodestyle.cpython-39.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions
1
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/INSTALLER
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
22 changes: 22 additions & 0 deletions
22
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/LICENSE
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
== Flake8 License (MIT) == | ||
|
||
Copyright (C) 2011-2013 Tarek Ziade <tarek@ziade.org> | ||
Copyright (C) 2012-2016 Ian Cordasco <graffatcolmingov@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
123 changes: 123 additions & 0 deletions
123
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/METADATA
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
Metadata-Version: 2.1 | ||
Name: flake8 | ||
Version: 4.0.1 | ||
Summary: the modular source code checker: pep8 pyflakes and co | ||
Home-page: https://github.com/pycqa/flake8 | ||
Author: Tarek Ziade | ||
Author-email: tarek@ziade.org | ||
Maintainer: Ian Stapleton Cordasco | ||
Maintainer-email: graffatcolmingov@gmail.com | ||
License: MIT | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Console | ||
Classifier: Framework :: Flake8 | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Programming Language :: Python :: 3.6 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Programming Language :: Python :: 3.10 | ||
Classifier: Programming Language :: Python :: Implementation :: CPython | ||
Classifier: Programming Language :: Python :: Implementation :: PyPy | ||
Classifier: Topic :: Software Development :: Libraries :: Python Modules | ||
Classifier: Topic :: Software Development :: Quality Assurance | ||
Requires-Python: >=3.6 | ||
Description-Content-Type: text/x-rst | ||
License-File: LICENSE | ||
Requires-Dist: mccabe (<0.7.0,>=0.6.0) | ||
Requires-Dist: pycodestyle (<2.9.0,>=2.8.0) | ||
Requires-Dist: pyflakes (<2.5.0,>=2.4.0) | ||
Requires-Dist: importlib-metadata (<4.3) ; python_version < "3.8" | ||
|
||
.. image:: https://github.com/PyCQA/flake8/workflows/main/badge.svg | ||
:target: https://github.com/PyCQA/flake8/actions?query=workflow%3Amain | ||
:alt: build status | ||
|
||
.. image:: https://results.pre-commit.ci/badge/github/PyCQA/flake8/main.svg | ||
:target: https://results.pre-commit.ci/latest/github/PyCQA/flake8/main | ||
:alt: pre-commit.ci status | ||
|
||
======== | ||
Flake8 | ||
======== | ||
|
||
Flake8 is a wrapper around these tools: | ||
|
||
- PyFlakes | ||
- pycodestyle | ||
- Ned Batchelder's McCabe script | ||
|
||
Flake8 runs all the tools by launching the single ``flake8`` command. | ||
It displays the warnings in a per-file, merged output. | ||
|
||
It also adds a few features: | ||
|
||
- files that contain this line are skipped:: | ||
|
||
# flake8: noqa | ||
|
||
- lines that contain a ``# noqa`` comment at the end will not issue warnings. | ||
- you can ignore specific errors on a line with ``# noqa: <error>``, e.g., | ||
``# 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 | ||
- Git and Mercurial hooks | ||
- extendable through ``flake8.extension`` and ``flake8.formatting`` entry | ||
points | ||
|
||
|
||
Quickstart | ||
========== | ||
|
||
See our `quickstart documentation | ||
<http://flake8.pycqa.org/en/latest/index.html#quickstart>`_ for how to install | ||
and get started with Flake8. | ||
|
||
|
||
Frequently Asked Questions | ||
========================== | ||
|
||
Flake8 maintains an `FAQ <http://flake8.pycqa.org/en/latest/faq.html>`_ in its | ||
documentation. | ||
|
||
|
||
Questions or Feedback | ||
===================== | ||
|
||
If you have questions you'd like to ask the developers, or feedback you'd like | ||
to provide, feel free to use the mailing list: code-quality@python.org | ||
|
||
We would love to hear from you. Additionally, if you have a feature you'd like | ||
to suggest, the mailing list would be the best place for it. | ||
|
||
|
||
Links | ||
===== | ||
|
||
* `Flake8 Documentation <http://flake8.pycqa.org/en/latest/>`_ | ||
|
||
* `GitHub Project <https://github.com/pycqa/flake8>`_ | ||
|
||
* `All (Open and Closed) Issues | ||
<https://github.com/pycqa/flake8/issues?q=is%3Aissue>`_ | ||
|
||
* `Code-Quality Archives | ||
<https://mail.python.org/mailman/listinfo/code-quality>`_ | ||
|
||
* `Code of Conduct | ||
<http://flake8.pycqa.org/en/latest/internal/contributing.html#code-of-conduct>`_ | ||
|
||
* `Getting Started Contributing | ||
<http://flake8.pycqa.org/en/latest/internal/contributing.html>`_ | ||
|
||
|
||
Maintenance | ||
=========== | ||
|
||
Flake8 was created by Tarek Ziadé and is currently maintained by `Ian Cordasco | ||
<http://www.coglib.com/~icordasc/>`_ | ||
|
||
|
63 changes: 63 additions & 0 deletions
63
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/RECORD
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
../../../bin/flake8,sha256=N5NwOE_Av--DjUjmkkYQw39pl69Z-vVfNJsnfA7hAI8,260 | ||
flake8-4.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
flake8-4.0.1.dist-info/LICENSE,sha256=5G355Zzr--CxRJLlzeNB6OxC0lKpm2pYP8RgiGOl2r4,1172 | ||
flake8-4.0.1.dist-info/METADATA,sha256=GeDughS8fHn2Svkcn7fmuEb5bZvJYTNb4YxWQ4Eae-c,3956 | ||
flake8-4.0.1.dist-info/RECORD,, | ||
flake8-4.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
flake8-4.0.1.dist-info/WHEEL,sha256=WzZ8cwjh8l0jtULNjYq1Hpr-WCqCRgPr--TX4P5I1Wo,110 | ||
flake8-4.0.1.dist-info/entry_points.txt,sha256=UiAjpnT9foJJhDvYYERpaw7SBOb2fCnsC7d1fI0gIm0,2950 | ||
flake8-4.0.1.dist-info/top_level.txt,sha256=6Tlo_i7chAhjqQkybdwPfClaqi0-dkJh_2o1PSn1aBM,7 | ||
flake8/__init__.py,sha256=JlpZHsJYfZnLrITxAknTFBOwTaGf77kY7JIALvgFoA0,2159 | ||
flake8/__main__.py,sha256=dabUN9AcCKbyXg1XHufkqTrjjY8RcLXONtghj0Fe_ak,92 | ||
flake8/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/__pycache__/__main__.cpython-39.pyc,, | ||
flake8/__pycache__/_compat.cpython-39.pyc,, | ||
flake8/__pycache__/checker.cpython-39.pyc,, | ||
flake8/__pycache__/defaults.cpython-39.pyc,, | ||
flake8/__pycache__/exceptions.cpython-39.pyc,, | ||
flake8/__pycache__/processor.cpython-39.pyc,, | ||
flake8/__pycache__/statistics.cpython-39.pyc,, | ||
flake8/__pycache__/style_guide.cpython-39.pyc,, | ||
flake8/__pycache__/utils.cpython-39.pyc,, | ||
flake8/_compat.py,sha256=tsqiv-3hLxf_gzL7pBhiKj4QvOZUy4v_FsVEoMpmKkI,264 | ||
flake8/api/__init__.py,sha256=-wEs53FMauJOC9KeMBK7BrmlFJk87IESGqMrK0r_boA,206 | ||
flake8/api/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/api/__pycache__/legacy.cpython-39.pyc,, | ||
flake8/api/legacy.py,sha256=taRq2puWhjrUo6GWeZqtAcvEOjGB4dEbxgkKjECxb8I,6657 | ||
flake8/checker.py,sha256=LHCdOAtXEI5UgSUOvgAFAVUdQN9Y4HmfNfBulBl7YVg,26405 | ||
flake8/defaults.py,sha256=axCcniRGsaw1DTSpiNUt2fedM1DJC8JZbD0hfityeGU,1129 | ||
flake8/exceptions.py,sha256=7Ru8oHMAMyaGdR-Q4ENyMZw1Wv4cVSPr7mBcU52mvYc,2247 | ||
flake8/formatting/__init__.py,sha256=deO8xV8tOk3-Ve3JLskFJw-2w1JxugzDAM4ktVsZUDM,62 | ||
flake8/formatting/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/formatting/__pycache__/base.cpython-39.pyc,, | ||
flake8/formatting/__pycache__/default.cpython-39.pyc,, | ||
flake8/formatting/base.py,sha256=10Ejg5a0o9DNG9fznKuM02nCmwYDvKuwwBKRJAiNgU0,7582 | ||
flake8/formatting/default.py,sha256=koaiChI6_sIggYB5F9vsYU_KKICFkR_u9ZLyZt4ZZHk,2676 | ||
flake8/main/__init__.py,sha256=_q10eGIQnFfs-_oiQp024dq3oM5AylXHuh-N8n0F4fY,63 | ||
flake8/main/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/main/__pycache__/application.cpython-39.pyc,, | ||
flake8/main/__pycache__/cli.cpython-39.pyc,, | ||
flake8/main/__pycache__/debug.cpython-39.pyc,, | ||
flake8/main/__pycache__/options.cpython-39.pyc,, | ||
flake8/main/application.py,sha256=PniUK1hZ0MNExI_dv_k4hixxZkcPNIBzUAkWOBfEx9Q,14861 | ||
flake8/main/cli.py,sha256=Q2xDhVLRixXHcqs5aVFAopr89PMGFDUMgbGY8FcGBdc,580 | ||
flake8/main/debug.py,sha256=2R9Wwx4TvqOGwFy1HB-TNcTADzz3XTpWQaP3q9hWsjQ,2018 | ||
flake8/main/options.py,sha256=WHUWeQQnvniFS0G0UdbnV4PMvec8GhoPV3KRFz89IDo,10305 | ||
flake8/options/__init__.py,sha256=0IHSM_4Cv3nf5OBX1JepUBhOtPYdVor66AN9HUrG5Zg,461 | ||
flake8/options/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/options/__pycache__/aggregator.cpython-39.pyc,, | ||
flake8/options/__pycache__/config.cpython-39.pyc,, | ||
flake8/options/__pycache__/manager.cpython-39.pyc,, | ||
flake8/options/aggregator.py,sha256=vwL4roTkZN4Bq_EPELEbTQlFsJf607C3EVyTR-4CHfA,3212 | ||
flake8/options/config.py,sha256=UhAse_nD_8GEtGyoMergdMVVtNKVggUQqshCFx3Eo7o,11575 | ||
flake8/options/manager.py,sha256=Ponc5-vrtebaSE59Kc29h0D55_aWB653794BtP9H7-4,19530 | ||
flake8/plugins/__init__.py,sha256=_iuuZoat150uO1BjEOu6S2_th3rS7UWMl2eRbO7iYmc,57 | ||
flake8/plugins/__pycache__/__init__.cpython-39.pyc,, | ||
flake8/plugins/__pycache__/manager.cpython-39.pyc,, | ||
flake8/plugins/__pycache__/pyflakes.cpython-39.pyc,, | ||
flake8/plugins/manager.py,sha256=O5g0fSge3N0im5FB5DfgDcL3A-tIOluPks7s4JZJey8,18180 | ||
flake8/plugins/pyflakes.py,sha256=tRVPE6PDcdLXwIpjbks3AeRIawvl0MpQrdBtgrxIqzI,6419 | ||
flake8/processor.py,sha256=2hrmedL6bW1N30mAY2HvWPSXHLYWdN0MJtdwFzykK0k,16904 | ||
flake8/statistics.py,sha256=dNGHQ6_fpvSbVeuGNvMAS1leXpOYXXECaII1wmzS3nQ,4650 | ||
flake8/style_guide.py,sha256=_WAp--Dtyu10bER7ld9mromGtObHt8tLAu0LyZj5VNA,22072 | ||
flake8/utils.py,sha256=_T-3g_ChTZqZVqlgnsVy1kYQd8C7zWAWeWNN1XmWlMU,14046 |
Empty file.
6 changes: 6 additions & 0 deletions
6
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/WHEEL
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Wheel-Version: 1.0 | ||
Generator: bdist_wheel (0.37.0) | ||
Root-Is-Purelib: true | ||
Tag: py2-none-any | ||
Tag: py3-none-any | ||
|
48 changes: 48 additions & 0 deletions
48
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/entry_points.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[console_scripts] | ||
flake8 = flake8.main.cli:main | ||
|
||
[flake8.extension] | ||
F = flake8.plugins.pyflakes:FlakesChecker | ||
pycodestyle.ambiguous_identifier = pycodestyle:ambiguous_identifier | ||
pycodestyle.bare_except = pycodestyle:bare_except | ||
pycodestyle.blank_lines = pycodestyle:blank_lines | ||
pycodestyle.break_after_binary_operator = pycodestyle:break_after_binary_operator | ||
pycodestyle.break_before_binary_operator = pycodestyle:break_before_binary_operator | ||
pycodestyle.comparison_negative = pycodestyle:comparison_negative | ||
pycodestyle.comparison_to_singleton = pycodestyle:comparison_to_singleton | ||
pycodestyle.comparison_type = pycodestyle:comparison_type | ||
pycodestyle.compound_statements = pycodestyle:compound_statements | ||
pycodestyle.continued_indentation = pycodestyle:continued_indentation | ||
pycodestyle.explicit_line_join = pycodestyle:explicit_line_join | ||
pycodestyle.extraneous_whitespace = pycodestyle:extraneous_whitespace | ||
pycodestyle.imports_on_separate_lines = pycodestyle:imports_on_separate_lines | ||
pycodestyle.indentation = pycodestyle:indentation | ||
pycodestyle.maximum_doc_length = pycodestyle:maximum_doc_length | ||
pycodestyle.maximum_line_length = pycodestyle:maximum_line_length | ||
pycodestyle.missing_whitespace = pycodestyle:missing_whitespace | ||
pycodestyle.missing_whitespace_after_import_keyword = pycodestyle:missing_whitespace_after_import_keyword | ||
pycodestyle.missing_whitespace_around_operator = pycodestyle:missing_whitespace_around_operator | ||
pycodestyle.module_imports_on_top_of_file = pycodestyle:module_imports_on_top_of_file | ||
pycodestyle.python_3000_async_await_keywords = pycodestyle:python_3000_async_await_keywords | ||
pycodestyle.python_3000_backticks = pycodestyle:python_3000_backticks | ||
pycodestyle.python_3000_has_key = pycodestyle:python_3000_has_key | ||
pycodestyle.python_3000_invalid_escape_sequence = pycodestyle:python_3000_invalid_escape_sequence | ||
pycodestyle.python_3000_not_equal = pycodestyle:python_3000_not_equal | ||
pycodestyle.python_3000_raise_comma = pycodestyle:python_3000_raise_comma | ||
pycodestyle.tabs_obsolete = pycodestyle:tabs_obsolete | ||
pycodestyle.tabs_or_spaces = pycodestyle:tabs_or_spaces | ||
pycodestyle.trailing_blank_lines = pycodestyle:trailing_blank_lines | ||
pycodestyle.trailing_whitespace = pycodestyle:trailing_whitespace | ||
pycodestyle.whitespace_around_comma = pycodestyle:whitespace_around_comma | ||
pycodestyle.whitespace_around_keywords = pycodestyle:whitespace_around_keywords | ||
pycodestyle.whitespace_around_named_parameter_equals = pycodestyle:whitespace_around_named_parameter_equals | ||
pycodestyle.whitespace_around_operator = pycodestyle:whitespace_around_operator | ||
pycodestyle.whitespace_before_comment = pycodestyle:whitespace_before_comment | ||
pycodestyle.whitespace_before_parameters = pycodestyle:whitespace_before_parameters | ||
|
||
[flake8.report] | ||
default = flake8.formatting.default:Default | ||
pylint = flake8.formatting.default:Pylint | ||
quiet-filename = flake8.formatting.default:FilenameOnly | ||
quiet-nothing = flake8.formatting.default:Nothing | ||
|
1 change: 1 addition & 0 deletions
1
.venv/lib/python3.9/site-packages/flake8-4.0.1.dist-info/top_level.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
flake8 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
"""Top-level module for Flake8. | ||
This module | ||
- initializes logging for the command-line tool | ||
- tracks the version of the package | ||
- provides a way to configure logging for the command-line tool | ||
.. autofunction:: flake8.configure_logging | ||
""" | ||
import logging | ||
import sys | ||
from typing import Type | ||
|
||
LOG = logging.getLogger(__name__) | ||
LOG.addHandler(logging.NullHandler()) | ||
|
||
__version__ = "4.0.1" | ||
__version_info__ = tuple(int(i) for i in __version__.split(".") if i.isdigit()) | ||
|
||
|
||
# There is nothing lower than logging.DEBUG (10) in the logging library, | ||
# but we want an extra level to avoid being too verbose when using -vv. | ||
_EXTRA_VERBOSE = 5 | ||
logging.addLevelName(_EXTRA_VERBOSE, "VERBOSE") | ||
|
||
_VERBOSITY_TO_LOG_LEVEL = { | ||
# output more than warnings but not debugging info | ||
1: logging.INFO, # INFO is a numerical level of 20 | ||
# output debugging information | ||
2: logging.DEBUG, # DEBUG is a numerical level of 10 | ||
# output extra verbose debugging information | ||
3: _EXTRA_VERBOSE, | ||
} | ||
|
||
LOG_FORMAT = ( | ||
"%(name)-25s %(processName)-11s %(relativeCreated)6d " | ||
"%(levelname)-8s %(message)s" | ||
) | ||
|
||
|
||
def configure_logging(verbosity, filename=None, logformat=LOG_FORMAT): | ||
"""Configure logging for flake8. | ||
:param int verbosity: | ||
How verbose to be in logging information. | ||
:param str filename: | ||
Name of the file to append log information to. | ||
If ``None`` this will log to ``sys.stderr``. | ||
If the name is "stdout" or "stderr" this will log to the appropriate | ||
stream. | ||
""" | ||
if verbosity <= 0: | ||
return | ||
if verbosity > 3: | ||
verbosity = 3 | ||
|
||
log_level = _VERBOSITY_TO_LOG_LEVEL[verbosity] | ||
|
||
if not filename or filename in ("stderr", "stdout"): | ||
fileobj = getattr(sys, filename or "stderr") | ||
handler_cls: Type[logging.Handler] = logging.StreamHandler | ||
else: | ||
fileobj = filename | ||
handler_cls = logging.FileHandler | ||
|
||
handler = handler_cls(fileobj) | ||
handler.setFormatter(logging.Formatter(logformat)) | ||
LOG.addHandler(handler) | ||
LOG.setLevel(log_level) | ||
LOG.debug( | ||
"Added a %s logging handler to logger root at %s", filename, __name__ | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Module allowing for ``python -m flake8 ...``.""" | ||
from flake8.main import cli | ||
|
||
cli.main() |
Binary file added
BIN
+1.89 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+306 Bytes
.venv/lib/python3.9/site-packages/flake8/__pycache__/__main__.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+391 Bytes
.venv/lib/python3.9/site-packages/flake8/__pycache__/_compat.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+17.4 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/checker.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+790 Bytes
.venv/lib/python3.9/site-packages/flake8/__pycache__/defaults.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+3.02 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/exceptions.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+13.4 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/processor.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+5.56 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/statistics.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+16.8 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/style_guide.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+11.6 KB
.venv/lib/python3.9/site-packages/flake8/__pycache__/utils.cpython-39.pyc
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Expose backports in a single place.""" | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): # pragma: no cover (PY38+) | ||
import importlib.metadata as importlib_metadata | ||
else: # pragma: no cover (<PY38) | ||
import importlib_metadata | ||
|
||
__all__ = ("importlib_metadata",) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Module containing all public entry-points for Flake8. | ||
This is the only submodule in Flake8 with a guaranteed stable API. All other | ||
submodules are considered internal only and are subject to change. | ||
""" |
Binary file added
BIN
+404 Bytes
.venv/lib/python3.9/site-packages/flake8/api/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added
BIN
+6.64 KB
.venv/lib/python3.9/site-packages/flake8/api/__pycache__/legacy.cpython-39.pyc
Binary file not shown.
Oops, something went wrong.