-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: align with upstream * build: update pre-commit * chore: run ruff * chore: ignore blame on reformat * ci: fix pip audit invocation
- Loading branch information
Showing
17 changed files
with
111 additions
and
140 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,12 @@ | ||
# Since version 2.23 (released in August 2019), git-blame has a feature | ||
# to ignore or bypass certain commits. | ||
# | ||
# This file contains a list of commits that are not likely what you | ||
# are looking for in a blame, such as mass reformatting or renaming. | ||
# You can set this file as a default ignore file for blame by running | ||
# the following command. | ||
# | ||
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# Apply ruff autoformatting | ||
7d5ca3b70bf57cded4e43e5211cf064a71d120aa |
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
This file was deleted.
Oops, something went wrong.
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,12 +1,56 @@ | ||
[tool.black] | ||
line-length = 99 | ||
|
||
[tool.isort] | ||
line_length = 99 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true | ||
ensure_newline_before_comments = true | ||
indent = "\t" | ||
profile = "black" | ||
[project] | ||
name = "wiki" | ||
authors = [ | ||
{ name = "Frappe Technologies Pvt Ltd", email = "[email protected]"} | ||
] | ||
description = "Simple Wiki App" | ||
requires-python = ">=3.10,<3.13" | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://frappe.io/wiki" | ||
Repository = "https://github.com/frappe/wiki.git" | ||
"Bug Reports" = "https://github.com/frappe/wiki/issues" | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.4,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
|
||
[tool.ruff] | ||
line-length = 110 | ||
target-version = "py310" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"F", | ||
"E", | ||
"W", | ||
"I", | ||
"UP", | ||
"B", | ||
"RUF", | ||
] | ||
ignore = [ | ||
"B017", # assertRaises(Exception) - should be more specific | ||
"B018", # useless expression, not assigned to anything | ||
"B023", # function doesn't bind loop variable - will have last iteration's value | ||
"B904", # raise inside except without from | ||
"E101", # indentation contains mixed spaces and tabs | ||
"E402", # module level import not at top of file | ||
"E501", # line too long | ||
"E741", # ambiguous variable name | ||
"F401", # "unused" imports | ||
"F403", # can't detect undefined names from * import | ||
"F405", # can't detect undefined names from * import | ||
"F722", # syntax error in forward type annotation | ||
"W191", # indentation contains tabs | ||
"RUF001", # string contains ambiguous unicode character | ||
] | ||
typing-modules = ["frappe.types.DF"] | ||
|
||
[tool.ruff.format] | ||
quote-style = "double" | ||
indent-style = "tab" | ||
docstring-code-format = true |
Empty file.
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
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
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
Oops, something went wrong.