Skip to content

Commit

Permalink
formatter update (#13)
Browse files Browse the repository at this point in the history
* formatter update

* maybe

* maybe now

---------

Co-authored-by: Ben Avrahami <[email protected]>
  • Loading branch information
bentheiii and Ben Avrahami authored Feb 29, 2024
1 parent d013816 commit 789b99d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
python: "3.12"
jobs:
post_install:
- pip install poetry
- pip install poetry==1.7.1
- poetry config virtualenvs.create false
- poetry install

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# envolved Changelog
## NEXT
### Deprecated
* this is the last release to support python 3.7
### Internal
* update formatter to ruff 0.3.0
## 1.3.0
### Added
* single-environment variable can now be given additional arguments, that are passed to the parser.
Expand Down
9 changes: 3 additions & 6 deletions envolved/describe/nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@

class NestedEnvVarsDescription(ABC):
@abstractmethod
def get_path(self) -> Tuple[str, ...]:
...
def get_path(self) -> Tuple[str, ...]: ...

@abstractmethod
def wrap(self, *, indent_increment: str, **kwargs: Any) -> Iterable[str]:
...
def wrap(self, *, indent_increment: str, **kwargs: Any) -> Iterable[str]: ...

@classmethod
def from_env_var(cls, path: Tuple[str, ...], env_var: EnvVar) -> NestedEnvVarsDescription:
Expand Down Expand Up @@ -66,8 +64,7 @@ class NestedDescriptionWithChildren(NestedEnvVarsDescription):
children: Iterable[NestedEnvVarsDescription]

@abstractmethod
def title(self) -> Description | None:
...
def title(self) -> Description | None: ...

def wrap(self, *, indent_increment: str, **kwargs: Any) -> Iterable[str]:
title = self.title()
Expand Down
2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# run various linters
set -e
python -m ruff format .
python -m ruff . --select I,F401 --fix --show-fixes
python -m ruff check . --select I,F401 --fix --show-fixes

0 comments on commit 789b99d

Please sign in to comment.