-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce ruff for linter (#25)
and remove flake8, isort, and autoflake Add typing.TYPE_CHECKING avoid circular import and make it no cover
- Loading branch information
1 parent
b6b067b
commit 9a28820
Showing
13 changed files
with
73 additions
and
64 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,46 @@ | ||
src = ["src"] | ||
|
||
# max-line-length = 88 | ||
line-length = 110 | ||
|
||
extend-select = [ | ||
"I", # isort | ||
"D", # pydocstyle | ||
"UP", # pyupgrade | ||
] | ||
|
||
ignore = [ | ||
# D100 Missing docstring in public module | ||
"D100", | ||
# D100 Missing docstring in public module | ||
"D104", | ||
# D107: Missing docstring in __init__ | ||
"D107", | ||
# D105: Missing docstring in magic method | ||
"D105", | ||
# D418: Function/ Method decorated with @overload shouldn’t contain a docstring | ||
"D418", | ||
] | ||
|
||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
"__pycache__", | ||
".egg-info", | ||
".eggs", | ||
".git", | ||
".pytest_cache", | ||
".tox", | ||
"build", | ||
"dist", | ||
"examples", | ||
"venv", | ||
] | ||
|
||
[isort] | ||
# Mark sqlfluff, test and it's plugins as known first party | ||
known-first-party = [ | ||
"stmdency", | ||
] | ||
|
||
[pydocstyle] | ||
convention = "google" |
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