Skip to content

Commit

Permalink
lint + new autopep8 exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Sep 28, 2023
1 parent ea867c3 commit 1aa9ca2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ lint-fix:
@ruff check . --fix
.PHONY: lint-fix

AUTOPEP8_EXCLUDES=optimism,op-geth,venv,account-abstraction
AUTOPEP8_OPTIONS=--recursive . --exclude $(AUTOPEP8_EXCLUDES) --max-line-length 100

format-check:
@autopep8 --diff --recursive . --exclude optimism,op-geth,venv --max-line-length 100 --exit-code
@autopep8 --diff --exit-code $(AUTOPEP8_OPTIONS)
.PHONY: format-check

format:
@autopep8 --in-place --recursive . --exclude optimism,op-geth,venv --max-line-length 100
@autopep8 --in-place $(AUTOPEP8_OPTIONS)
.PHONY: format

check: lint format-check
Expand Down
1 change: 0 additions & 1 deletion l1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os
import pathlib
import shutil
import subprocess
import sys

import libroll as lib
Expand Down
1 change: 0 additions & 1 deletion l2_batcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import subprocess
import sys

from config import Config
Expand Down
1 change: 0 additions & 1 deletion l2_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import shutil
import subprocess
import sys

from config import Config
Expand Down
1 change: 0 additions & 1 deletion l2_node.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import shutil
import subprocess
import sys

from config import Config
Expand Down
1 change: 0 additions & 1 deletion l2_proposer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import subprocess
import sys

from config import Config
Expand Down

0 comments on commit 1aa9ca2

Please sign in to comment.