Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
amfet42 committed Jun 26, 2023
1 parent 018cc3f commit debaec2
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 120
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: pre-commit

on: [pull_request, push]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: lint

jobs:
pre-commit:

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4

- name: Setup Python 3.10.4
uses: actions/setup-python@v4
with:
python-version: 3.10.4

- uses: pre-commit/action@v3.0.0
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repos:
rev: 4.0.1
hooks:
- id: flake8
args: [--max-line-length=120]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand Down
4 changes: 1 addition & 3 deletions tests/fixtures/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,5 @@ def factory(


@pytest.fixture(scope="module")
def factory_populated(
factory, swap_plain, swap_eth_rebasing, swap_oracle, swap_meta
):
def factory_populated(factory, swap_plain, swap_eth_rebasing, swap_oracle, swap_meta):
return factory
4 changes: 1 addition & 3 deletions tests/fixtures/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def dai(deployer):
def steth(deployer):
with boa.env.prank(deployer):
# TODO: turn this into a rebasing implementation
return boa.load(
"contracts/mocks/ERC20Rebasing.vy", "stETH", "stETH", 18
)
return boa.load("contracts/mocks/ERC20Rebasing.vy", "stETH", "stETH", 18)


@pytest.fixture(scope="module")
Expand Down
4 changes: 1 addition & 3 deletions tests/unitary/pool/plain/test_add_liquidity_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@


@pytest.mark.parametrize("min_amount", [0, 10**18])
def test_initial(
alice, swap_plain, coins, decimals, min_amount, initial_amounts
):
def test_initial(alice, swap_plain, coins, decimals, min_amount, initial_amounts):

amounts = [10**d for d in decimals]
for idx in range(2):
Expand Down

0 comments on commit debaec2

Please sign in to comment.