OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
flake8
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
1.92 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
__main__.py
142 bytes
12/18/2024 10:23:16 AM
rw-r--r--
📁
__pycache__
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📄
_compat.py
518 bytes
12/18/2024 10:23:16 AM
rw-r--r--
📁
api
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📄
checker.py
23.46 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
defaults.py
1.08 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
discover_files.py
2.84 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
exceptions.py
2.3 KB
12/18/2024 10:23:16 AM
rw-r--r--
📁
formatting
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📁
main
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📁
options
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📁
plugins
-
02/07/2025 10:01:30 PM
rwxr-xr-x
📄
processor.py
16.05 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
statistics.py
4.31 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
style_guide.py
15.35 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
utils.py
10.93 KB
12/18/2024 10:23:16 AM
rw-r--r--
📄
violation.py
3.57 KB
12/18/2024 10:23:16 AM
rw-r--r--
Editing: defaults.py
Close
"""Constants that define defaults.""" import re EXCLUDE = ( ".svn", "CVS", ".bzr", ".hg", ".git", "__pycache__", ".tox", ".nox", ".eggs", "*.egg", ) IGNORE = ("E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504") SELECT = ("E", "F", "W", "C90") MAX_LINE_LENGTH = 79 INDENT_SIZE = 4 # Other constants WHITESPACE = frozenset(" \t") STATISTIC_NAMES = ("logical lines", "physical lines", "tokens") NOQA_INLINE_REGEXP = re.compile( # We're looking for items that look like this: # ``# noqa`` # ``# noqa: E123`` # ``# noqa: E123,W451,F921`` # ``# noqa:E123,W451,F921`` # ``# NoQA: E123,W451,F921`` # ``# NOQA: E123,W451,F921`` # ``# NOQA:E123,W451,F921`` # We do not want to capture the ``: `` that follows ``noqa`` # We do not care about the casing of ``noqa`` # We want a comma-separated list of errors # https://regex101.com/r/4XUuax/2 full explanation of the regex r"# noqa(?::[\s]?(?P<codes>([A-Z]+[0-9]+(?:[,\s]+)?)+))?", re.IGNORECASE, ) NOQA_FILE = re.compile(r"\s*# flake8[:=]\s*noqa", re.I)