-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Ruff and remove Black linter
- Loading branch information
1 parent
75ce9d0
commit d76f8f7
Showing
4 changed files
with
17 additions
and
18 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
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 |
---|---|---|
|
@@ -54,15 +54,14 @@ markdown = ["markdown>=3.4"] | |
|
||
[tool.pdm.dev-dependencies] | ||
lint = [ | ||
"black>=23.7.0", | ||
"invoke>=2.2.0", | ||
"ruff>=0.1.8", | ||
"invoke>=2.2", | ||
"ruff>=0.6.0,<0.7.0", | ||
] | ||
test = [ | ||
"markdown>=3.4", | ||
"pytest>=7.0", | ||
"pytest-cov>=4.0", | ||
"pytest-sugar>=0.9.7", | ||
"pytest-sugar>=1.0", | ||
] | ||
|
||
[tool.pdm.build] | ||
|
@@ -80,7 +79,7 @@ git-username = "botpub" | |
git-email = "[email protected]" | ||
append-github-contributor = true | ||
|
||
[tool.ruff] | ||
[tool.ruff.lint] | ||
select = [ | ||
"B", # flake8-bugbear | ||
"BLE", # flake8-blind-except | ||
|
@@ -111,9 +110,10 @@ ignore = [ | |
"D104", # missing docstring in public package | ||
"D203", # blank line before class docstring | ||
"D213", # multi-line docstring summary should start at the second line | ||
"ISC001", # disabled so `ruff format` works without warning | ||
] | ||
|
||
[tool.ruff.isort] | ||
[tool.ruff.lint.isort] | ||
combine-as-imports = true | ||
force-sort-within-sections = true | ||
known-first-party = ["pelican"] | ||
|
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