-
-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typecheck-part-1 #1350
base: master
Are you sure you want to change the base?
typecheck-part-1 #1350
Changes from 9 commits
55bc286
669981a
6f65aa4
7db23de
130c69c
37f51cd
21bdf35
64fc392
006b591
5085e14
a93d488
5ceb724
b15191d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,15 +25,53 @@ environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSIO | |
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}" | ||
|
||
[tool.ruff] | ||
target-version = "py310" # oldest supported Python version | ||
fix = true | ||
extend-exclude = [ ".cache", ".coverage", "build", "site-packages", "venv*"] | ||
target-version = "py310" # oldest supported Python version | ||
lint.select = [ | ||
"E", | ||
"W", | ||
"F", | ||
"I", | ||
"B", | ||
"C4", | ||
"ARG", | ||
"SIM", | ||
"PTH", | ||
"PL", | ||
"TID", | ||
] | ||
lint.ignore = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come you're not using this instead, for [tool.ruff.lint] As seen (and suggested one might say) in ruff's docs. |
||
"W291", # Trailing whitespace | ||
"E501", # Line too long | ||
"W293", # Blank line contains whitespace | ||
"PLR0912", # Too many branches | ||
"PLR2004", # Magic values | ||
"PLR0915", # Too many statements | ||
"PLW0603", # Global statement | ||
"PLR0913", # Too many arguments | ||
"B010", # setattr | ||
"F401", # unused imports | ||
"ARG002", # unused arguments | ||
"SIM105", # try-except-pass | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you ignoring them because there are many fixes to be made? If so, the suggested approach is not to ignore them at the configuration level, but run ruff with
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, never know that kind of thing, thanks! |
||
] | ||
|
||
[tool.ruff.format] | ||
quote-style = "single" | ||
|
||
[tool.pyright] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are adding a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will add pyright soon in another PR |
||
typeCheckingMode = "strict" | ||
pythonVersion = "3.10" | ||
reportPrivateUsage = "none" | ||
reportAttributeAccessIssue = "none" | ||
reportUnknownMemberType = "none" | ||
reportUnusedFunction = "none" | ||
reportUnnecessaryIsInstance = "none" | ||
|
||
[tool.codespell] | ||
# Ref: https://github.com/codespell-project/codespell#using-a-config-file | ||
skip = '.git*' | ||
check-hidden = true | ||
# ignore-regex = '' | ||
ignore-words-list = 'devault,claus' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't
fix
es be opt-in, instead of opt-out? 🤔 Would you mind elaborating on your reasoning?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, that should be opt-in, sorry.