Skip to content

Commit abf646a

Browse files
committed
Add patch for flake8-6.0.0
1 parent 9b83dbd commit abf646a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/flake8/checker.py b/flake8/checker.py
2+
--- a/flake8/checker.py
3+
+++ b/flake8/checker.py
4+
@@ -1,6 +1,7 @@
5+
"""Checker Manager and Checker classes."""
6+
from __future__ import annotations
7+
8+
+import sys
9+
import argparse
10+
import contextlib
11+
import errno
12+
@@ -149,6 +150,8 @@ class Manager:
13+
# default to 1
14+
if jobs.is_auto:
15+
try:
16+
+ if sys.implementation.name == 'graalpy':
17+
+ return 0
18+
return multiprocessing.cpu_count()
19+
except NotImplementedError:
20+
return 0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
version = '== 6.0.0'
3+
patch = 'flake8-6.0.0.patch'

0 commit comments

Comments
 (0)