-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add basic configuration for ruff + apply
- Loading branch information
Showing
4 changed files
with
62 additions
and
17 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
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,42 @@ | ||
# Same as Black. | ||
line-length = 88 | ||
indent-width = 4 | ||
|
||
# Assume Python 3.9 | ||
target-version = "py39" | ||
|
||
# See rules: https://beta.rs/docs/rules/ | ||
select = [ | ||
"C", # flake8-comprehensions | ||
"F", # pyflakes | ||
"FURB", # refurb | ||
"I", # isort | ||
"N", # pep8-naming | ||
"PIE", # misc lints | ||
"PTH", # flake8-use-pathlib | ||
"PGH", # pygrep | ||
"RET", # return | ||
"RUF", # ruff-specific rules | ||
"UP", # pyupgrade | ||
"SIM", # flake8-simplify | ||
"W", # pycodestyle warnings | ||
] | ||
|
||
# disable for now to keep current PR small | ||
exclude = ["utils/ccl_chrome_indexeddb/*.py", "utils/dump_*.py", "utils/populate_*.py","utils/const.py", "utils/shared.py", "utils/scout_leveldb.py", "Forensicsim_Parser.py"] | ||
|
||
|
||
ignore = [ | ||
"E501", # line too long, handled by black | ||
"N803", # argument name should be lowercase | ||
"N806", # variable name should be lowercase | ||
"C901", # too complex | ||
"D206", # indent with white space | ||
"W191", # tab identation | ||
] | ||
|
||
[lint] | ||
preview = true | ||
|
||
[format] | ||
preview = true |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
XTRACT_HEADER = """ | ||
_____ _ _ | ||
| ___|__ _ __ ___ _ __ ___(_) ___ ___ (_)_ __ ___ | ||
| |_ / _ \| '__/ _ \ '_ \/ __| |/ __/ __| | | '_ ` _ \\ | ||
| _| (_) | | | __/ | | \__ \ | (__\__ \_| | | | | | | | ||
|_| \___/|_| \___|_| |_|___/_|\___|___(_)_|_| |_| |_| | ||
| |_ / _ \\| '__/ _ \\ '_ \\/ __| |/ __/ __| | | '_ ` _ \\ | ||
| _| (_) | | | __/ | | \\__ \\ | (__\\__ \\_| | | | | | | | ||
|_| \\___/|_| \\___|_| |_|___/_|\\___|___(_)_|_| |_| |_| | ||
__ ___ _ _____ _ | ||
\ \/ / |_ _ __ __ _ ___| |_ |_ _|__ ___ | | | ||
\ /| __| '__/ _` |/ __| __| | |/ _ \ / _ \| | | ||
/ \| |_| | | (_| | (__| |_ | | (_) | (_) | | | ||
/_/\_\\\\__|_| \__,_|\___|\__| |_|\___/ \___/|_| | ||
\\ \\/ / |_ _ __ __ _ ___| |_ |_ _|__ ___ | | | ||
\\ /| __| '__/ _` |/ __| __| | |/ _ \\ / _ \\| | | ||
/ \\| |_| | | (_| | (__| |_ | | (_) | (_) | | | ||
/_/\\_\\\\__|_| \\__,_|\\___|\\__| |_|\\___/ \\___/|_| | ||
""" |
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