Skip to content

Commit f6202e0

Browse files
committed
Add in miscellaneus changes
1 parent af551b4 commit f6202e0

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ repos:
4343
types: [c++]
4444

4545

46+
# Vendored
47+
exclude: ^(com/win32comext/mapi/src/mapi_headers/|Pythonwin/Scintilla/).*$
48+
4649
# Vendored
4750
exclude: ^(com/win32comext/mapi/src/mapi_headers/|Pythonwin/Scintilla/).*$
4851

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Coming in build 307, as yet unreleased
4545
* Fixed handling of `SyntaxError` exception from a Windows Scripting Host Python Script on Python 3.10+ (#2235, @nbbeatty)
4646
* Add `CredGetSessionTypes` support (#2232, @CristiFati)
4747
* Fixed `win32clipboard` increasing size of data when `SetClipboardData` used with `CF_DIB` (#2184, @CristiFati)
48-
* Add `StoreLogoff` to `PyIMsgStore` to prevent possible hang when MAPI uninitializes or during session logoff (#2196, @avivbrg)
48+
* Add `StoreLogoff` to `PyIMsgStore` to prevent possible hang when MAPI uninitializes or during session logoff (#2196, avivbrg)
4949
* Enhance CredDelete to work with dictionaries (#2198, @CristiFati)
5050
* Add UnregisterHotKey support (#2185, @CristiFati)
5151
* IFolderView COM client support (#2180, #2181, #2182, @CristiFati)

ruff.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ target-version = "py37" # Target the oldest supported version
22

33
[lint]
44
select = [
5-
"C4", # flake8-comprehensions
6-
"F811", # redefined-while-unused
7-
"I", # isort
5+
"I", # isort
86
"PLC", # Pylint Convention
97
"PLE", # Pylint Error
108
"RSE", # flake8-raise
@@ -36,8 +34,6 @@ select = [
3634
[lint.per-file-ignores]
3735
# Explicit re-exports is fine in __init__.py, still a code smell elsewhere.
3836
"__init__.py" = ["PLC0414"]
39-
# TODO: Make adodbapi changes in their own PRs
40-
"adodbapi/*" = ["C4", "YTT301", "UP031", "UP032", "ISC002"]
4137

4238
[lint.isort]
4339
combine-as-imports = true

win32/test/test_win32gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def enum_callback_sle(cls, handle, data):
7272

7373
@classmethod
7474
def enum_callback_exc(cls, handle, data):
75-
raise ValueError
75+
raise ValueError()
7676

7777
@classmethod
7878
def enum_callback(cls, handle, data):

0 commit comments

Comments
 (0)