File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
pytest-embedded-jtag/pytest_embedded_jtag/_telnetlib Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ exclude: |
88
99repos :
1010 - repo : https://github.com/pre-commit/pre-commit-hooks
11- rev : v4.6 .0
11+ rev : v5.0 .0
1212 hooks :
1313 - id : trailing-whitespace
1414 - id : end-of-file-fixer
1515 - id : mixed-line-ending
1616 args : ["-f=lf"]
1717 - repo : https://github.com/charliermarsh/ruff-pre-commit
18- rev : " v0.6 .1"
18+ rev : " v0.8 .1"
1919 hooks :
2020 - id : ruff
2121 args : ["--fix"]
2424
2525 # documentation
2626 - repo : https://github.com/sphinx-contrib/sphinx-lint
27- rev : v0.9.1
27+ rev : v1.0.0
2828 hooks :
2929 - id : sphinx-lint
3030 args : [--enable=default-role]
Original file line number Diff line number Diff line change @@ -474,21 +474,21 @@ def process_rawq(self):
474474 # We can't offer automatic processing of
475475 # suboptions. Alas, we should not get any
476476 # unless we did a WILL/DO before.
477- self .msg ('IAC %d not recognized' % ord ( c ) )
477+ self .msg (f 'IAC { ord ( c ):d } not recognized' )
478478 elif len (self .iacseq ) == 2 :
479479 cmd = self .iacseq [1 :2 ]
480480 self .iacseq = b''
481481 opt = c
482482 if cmd in (DO , DONT ):
483483 self .msg ('IAC %s %d' ,
484- cmd == DO and 'DO' or 'DONT' , ord (opt ))
484+ ( cmd == DO and 'DO' ) or 'DONT' , ord (opt ))
485485 if self .option_callback :
486486 self .option_callback (self .sock , cmd , opt )
487487 else :
488488 self .sock .sendall (IAC + WONT + opt )
489489 elif cmd in (WILL , WONT ):
490490 self .msg ('IAC %s %d' ,
491- cmd == WILL and 'WILL' or 'WONT' , ord (opt ))
491+ ( cmd == WILL and 'WILL' ) or 'WONT' , ord (opt ))
492492 if self .option_callback :
493493 self .option_callback (self .sock , cmd , opt )
494494 else :
You can’t perform that action at this time.
0 commit comments