-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
160 lines (149 loc) · 4.79 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[project]
name = "lfinder"
requires-python = ">=3.9.0"
description = "Tool to find Local File Inclusion (LFI) vulnerabilities"
authors = [{name="vffuunnyy", email="vffuunnyy@gmail.com"}]
license = "MIT"
readme = "README.md"
dynamic = ["version"]
keywords = ["security", "finder", "lfi"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Environment :: Console",
]
[tool.poetry]
name = "lfinder"
version = "0.1.0"
description = "Tool to find Local File Inclusion (LFI) vulnerabilities"
authors = ["vffuunnyy <vffuunnyy@gmail.com>"]
license = "MIT"
readme = "README.md"
include = ["lfinder/lfi.txt"]
[tool.poetry.scripts]
lfinder = "lfinder.__main__:main"
[tool.poetry.dependencies]
python = "^3.9"
curl-cffi = "^0.7.2"
rich = "^13.8.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.6.8"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py39"
src = ["lfinder"]
fix = true
line-length = 100
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C40", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"ERA", # flake8-eradicate/eradicate
"EXE", # flake8-executable
"F", # pyflakes
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff checks
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
"UP006", # Use `list` instead of `List` for type annotation
"UP007", # Use `X | Y` for type annotations
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"TID252", # Import from package instead of module
"ALL", # All not listed above
]
ignore = [
"COM812",
"ISC001",
"W191",
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"DJ", # flake8-Django
"EM", # flake8-errmsg
"PYI", # flake8-pyi
"Q", # flake8-quotes
"PD", # pandas-vet
"D", # pydocstyle
"TRY", # tryceratops
"SLF", # flake8-self
"B904", # use 'raise ... from err'
"B905", # `zip()` without an explicit `strict=` parameter (python3.10+ only)
"PLR0913", # Too many arguments to function call
"A003", # Class attribute builtin name shadowing
"N818", # Exception should be named with an Error suffix
"PGH003", # Use specific rule codes when ignoring type issues
"ARG002", # Unused method argument
"ANN002", # typed args
"ANN003", # typed kwargs
"ANN101", # typed self
"ANN102", # typed cls
"ANN204", # typed __init__
"RUF001", # String contains ambiguous unicode character
"RUF002", # Docstring contains ambiguous unicode character
"RUF003", # Comment contains ambiguous unicode character
"PLW2901", # for loop variable overwritten by assignment target
"PLE1205", # https://github.com/charliermarsh/ruff/issues/3351
"B030", # Except handlers should only be exception classes or tuples of exception
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue,
"ERA001", # Commented out code
"T201", # print() used
"FA102", # `__future__` import "annotations" missing
"CPY001", # Missing copyright notice at top of file
"EXE002", # Checks for executable .py files that do not have a shebang.
]
fixable = ["ALL"]
unfixable = ["ERA"] # do not autoremove commented out code
per-file-ignores."__init__.py" = ["F401", "F403"]
flake8-tidy-imports.ban-relative-imports = "all"
[tool.ruff.lint.isort]
known-first-party = ["lfinder"]
case-sensitive = true
combine-as-imports = true
lines-between-types = 1
lines-after-imports = 2
[tool.ruff.format]
preview = true
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"