Skip to content

Commit

Permalink
Merge pull request #110 from DanielSchiavini/pre-commit-checks
Browse files Browse the repository at this point in the history
Fix pre-commit checks
  • Loading branch information
charles-cooper authored Dec 18, 2023
2 parents cb0d4fb + de827d0 commit 1c6fefa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.3.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.0
hooks:
- id: black
args:
- -C
- --target-version=py38
- --skip-magic-trailing-comma
- --target-version=py310
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
# profile and line-length to avoid clashes with black
args: ["--profile=black", "--line-length=88"]

default_language_version:
python: python3.10
10 changes: 9 additions & 1 deletion boa/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
from requests.exceptions import HTTPError

from boa.environment import Address, Env
from boa.rpc import EthereumRPC, RPCError, fixup_dict, to_bytes, to_hex, to_int, trim_dict
from boa.rpc import (
EthereumRPC,
RPCError,
fixup_dict,
to_bytes,
to_hex,
to_int,
trim_dict,
)


class TraceObject:
Expand Down
7 changes: 3 additions & 4 deletions docs/source/coverage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ To use, add the following to ``.coveragerc``:
plugins = boa.coverage
(for more information see https://coverage.readthedocs.io/en/latest/config.html)

Then, run with ``coverage run ...``

To run with pytest, it can be invoked in either of two ways,

.. code-block::
Expand All @@ -29,6 +29,5 @@ or,
`pytest-cov <https://pytest-cov.readthedocs.io/en/latest/readme.html#usage>`_ is a wrapper around ``coverage.py`` for using with pytest; using it is recommended because it smooths out some quirks of using ``coverage.py`` with pytest.

Finally, ``coverage.py`` saves coverage data to a file named ``.coverage`` in the directory it is run in. To view the formatted coverage data, you typically want to use ``coverage report`` or ``coverage html``. See more options at https://coverage.readthedocs.io/en/latest/cmd.html.

Coverage is experimental and there may be odd corner cases! If so, please report them on github or in the ``#titanoboa-interpreter`` channel of the `Vyper discord <https://discord.gg/6tw7PTM7C2>`_.

Coverage is experimental and there may be odd corner cases! If so, please report them on github or in the ``#titanoboa-interpreter`` channel of the `Vyper discord <https://discord.gg/6tw7PTM7C2>`_.

0 comments on commit 1c6fefa

Please sign in to comment.