Commit 801ed7c
committed
Fix linting errors in autoscale code
- Add missing getpass import in salt/crypt.py
- Remove duplicate PublicKey class definition
- Add pylint disable comments for intentional super().__init__() overrides
- Remove unused shutil import from salt/channel/server.py
- Add explicit utf-8 encoding to pathlib.Path().write_text() calls
- Add pylint disable comments for intentional broad exception handlers
- Fix test imports to use tests.support.mock instead of unittest.mock
- Remove unused hashlib import from integration test
All linting now passes with 10/10 rating.1 parent eba1b43 commit 801ed7c
4 files changed
Lines changed: 12 additions & 26 deletions
File tree
- salt
- channel
- tests/pytests
- integration/cluster
- unit/channel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
1318 | 1317 | | |
1319 | 1318 | | |
1320 | 1319 | | |
1321 | | - | |
| 1320 | + | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
| |||
1364 | 1363 | | |
1365 | 1364 | | |
1366 | 1365 | | |
1367 | | - | |
| 1366 | + | |
1368 | 1367 | | |
1369 | 1368 | | |
1370 | 1369 | | |
| |||
1395 | 1394 | | |
1396 | 1395 | | |
1397 | 1396 | | |
1398 | | - | |
| 1397 | + | |
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
| |||
1427 | 1426 | | |
1428 | 1427 | | |
1429 | 1428 | | |
1430 | | - | |
| 1429 | + | |
1431 | 1430 | | |
1432 | 1431 | | |
1433 | 1432 | | |
| |||
1467 | 1466 | | |
1468 | 1467 | | |
1469 | 1468 | | |
1470 | | - | |
| 1469 | + | |
1471 | 1470 | | |
1472 | 1471 | | |
1473 | 1472 | | |
| |||
1488 | 1487 | | |
1489 | 1488 | | |
1490 | 1489 | | |
1491 | | - | |
| 1490 | + | |
1492 | 1491 | | |
1493 | 1492 | | |
1494 | 1493 | | |
| |||
1538 | 1537 | | |
1539 | 1538 | | |
1540 | 1539 | | |
1541 | | - | |
| 1540 | + | |
1542 | 1541 | | |
1543 | 1542 | | |
1544 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 387 | | |
398 | | - | |
399 | | - | |
| 388 | + | |
400 | 389 | | |
401 | 390 | | |
402 | 391 | | |
| |||
455 | 444 | | |
456 | 445 | | |
457 | 446 | | |
458 | | - | |
| 447 | + | |
459 | 448 | | |
460 | 449 | | |
461 | 450 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | | - | |
504 | 502 | | |
505 | 503 | | |
506 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments