-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because Ruff is fast and has many nice rules. Nasty ones we can ignore, but most of them do make sense.
- Loading branch information
1 parent
b8f23b5
commit b10dfdc
Showing
34 changed files
with
227 additions
and
303 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 |
---|---|---|
|
@@ -8,9 +8,7 @@ description = "An extendable static site generator powered by the Force. =/" | |
readme = "README.rst" | ||
requires-python = ">= 3.10" | ||
license = "BSD-3-Clause" | ||
authors = [ | ||
{ name = "Ihor Kalnytskyi", email = "[email protected]" } | ||
] | ||
authors = [{ name = "Ihor Kalnytskyi", email = "[email protected]" }] | ||
keywords = ["static", "site", "blog", "generator", "markdown"] | ||
classifiers = [ | ||
"Environment :: Console", | ||
|
@@ -76,12 +74,50 @@ dependencies = ["ruff == 0.8.*"] | |
scripts.check = ["ruff check {args:.}", "ruff format --check --diff {args:.}"] | ||
scripts.fmt = ["ruff check --fix {args:.}", "ruff format {args:.}"] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
|
||
[tool.ruff.lint] | ||
select = ["F", "E", "W", "I", "S", "FBT", "B", "C4", "DTZ", "T10", "ISC", "RET", "SLF", "RUF"] | ||
ignore = ["S603", "S701", "B904", "ISC001"] | ||
select = ["ALL"] | ||
ignore = [ | ||
"A001", | ||
"A002", | ||
"ANN", | ||
"ARG001", | ||
"ARG002", | ||
"B904", | ||
"C", | ||
"COM812", | ||
"D", | ||
"INP001", | ||
"ISC001", | ||
"N801", | ||
"N802", | ||
"PERF203", | ||
"PLR", | ||
"PLW2901", | ||
"PTH", | ||
"S603", | ||
"S701", | ||
"SIM117", | ||
"TID252", | ||
] | ||
|
||
[tool.ruff.lint.isort] | ||
known-first-party = ["holocron"] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = ["E501", "S101", "S607", "SLF001", "RUF001"] | ||
"src/holocron/__main__.py" = ["T201"] | ||
"tests/*" = [ | ||
"BLE001", | ||
"D", | ||
"E501", | ||
"PT011", | ||
"PT012", | ||
"RUF001", | ||
"S101", | ||
"S607", | ||
"SIM108", | ||
"SLF001", | ||
"UP031", | ||
] |
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
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
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.