Skip to content

Commit

Permalink
chore: realizations from performance and lint upgrades (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Nov 25, 2024
1 parent e035e45 commit 5bce213
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
additional_dependencies: [types-setuptools, pydantic]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.18
rev: 0.7.19
hooks:
- id: mdformat
additional_dependencies: [mdformat-gfm, mdformat-frontmatter, mdformat-pyproject]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can do so with a command like this:
ape vyper flatten contracts/MyContract.vy build/MyContractFlattened.vy
```

> \[!WARNING\]
> [!WARNING]
> This feature is experimental. Please [report any bugs](https://github.com/ApeWorX/ape-solidity/issues/new?assignees=&labels=bug&projects=&template=bug.md) you find when trying it out.
### Compiler Version
Expand Down
4 changes: 1 addition & 3 deletions ape_vyper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Any

from ape import plugins


Expand All @@ -18,7 +16,7 @@ def register_compiler():
return tuple(e.value for e in FileType), VyperCompiler


def __getattr__(name: str) -> Any:
def __getattr__(name: str):
if name == "FileType":
from ._utils import FileType

Expand Down
2 changes: 1 addition & 1 deletion ape_vyper/compiler/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def compile(
) -> Iterator["ContractType"]:
pm = project or self.local_project
original_settings = self.compiler_settings
self.compiler_settings = {**self.compiler_settings, **(settings or {})}
self.compiler_settings: dict = {**self.compiler_settings, **(settings or {})}
try:
yield from self._compile(contract_filepaths, project=pm)
finally:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"flake8-pydantic", # For detecting issues with Pydantic models
"flake8-type-checking", # Detect imports to move in/out of type-checking blocks
"isort>=5.13.2", # Import sorting linter
"mdformat>=0.7.18", # Auto-formatter for markdown
"mdformat>=0.7.19", # Auto-formatter for markdown
"mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown
"mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style headers in issue templates
"mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml
"mdformat-pyproject>=0.0.2", # Allows configuring in pyproject.toml
],
"release": [ # `release` GitHub Action job uses this
"setuptools", # Installation tool
Expand Down

0 comments on commit 5bce213

Please sign in to comment.