-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(lint): Cleanup/ignore common linter errors
These are linters that my editor uses by default because they are common linters, so might as well fix what we can and ignore the rest. As much as possible, I placed ignores that should apply across the code base in the appropriate configuration file rather than inline comments.
- Loading branch information
1 parent
7e6d9d5
commit 660343d
Showing
10 changed files
with
75 additions
and
6 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,45 @@ | ||
# Couldn't get `foo.*` module wildcards to work in `./pyproject.toml` | ||
[mypy-ordereddict] | ||
ignore_missing_imports = True | ||
[mypy-transaction] | ||
ignore_missing_imports = True | ||
[mypy-zope.*] | ||
ignore_missing_imports = True | ||
[mypy-ZODB.*] | ||
ignore_missing_imports = True | ||
[mypy-BTrees.*] | ||
ignore_missing_imports = True | ||
[mypy-zExceptions.*] | ||
ignore_missing_imports = True | ||
[mypy-AccessControl.*] | ||
ignore_missing_imports = True | ||
[mypy-Acquisition.*] | ||
ignore_missing_imports = True | ||
[mypy-OFS.*] | ||
ignore_missing_imports = TRUE | ||
[mypy-ZPublisher.*] | ||
ignore_missing_imports = True | ||
[mypy-App.*] | ||
ignore_missing_imports = True | ||
[mypy-AuthEncoding.*] | ||
ignore_missing_imports = True | ||
[mypy-DateTime.*] | ||
ignore_missing_imports = True | ||
[mypy-Products.*] | ||
ignore_missing_imports = True | ||
[mypy-plone.*] | ||
ignore_missing_imports = True | ||
|
||
# For some reason installing `types-*` didn't work | ||
[mypy-six.*] | ||
ignore_missing_imports = True | ||
[mypy-past.*] | ||
ignore_missing_imports = True | ||
[mypy-PIL.*] | ||
ignore_missing_imports = True | ||
|
||
# Zope interfaces break MyPy expectations and unfortunately I couldn't find a way to | ||
# ignore only the specific error MyPy reports: | ||
# `./src/Products/PlonePAS/interfaces/capabilities.py:57: error: Method must have at least one argument` | ||
[mypy-*.interfaces.*] | ||
ignore_errors = True |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ def getMemberInfo(memberId=None): | |
location, etc | ||
""" | ||
|
||
__all__ = (IMembershipTool, ) | ||
__all__ = ("IMembershipTool", ) |
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