Skip to content

Commit

Permalink
Ruff/b023 (#203)
Browse files Browse the repository at this point in the history
* update toml

* fix b023 issue

* simplified default args, fixed install docs, added version.py to gitignore

---------

Co-authored-by: Behrang Shafei <[email protected]>
  • Loading branch information
jduerholt and bertiqwerty authored May 13, 2023
1 parent 0e17c98 commit 3d7b300
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ dmypy.json

# Pyre type checker
.pyre/

# generated version file
bofire/version.py
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ git clone https://github.com/experimental-design/bofire.git
```
and cd `bofire`, you can proceed with
```
pip install -e .[optimization,cheminfo,docs,testing]
pip install -e .[optimization,cheminfo,docs,tests]
```
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ignore = [
"E501", # don't enforce for comments and docstrings
"B017", # required for tests
"B027", # required for optional _tell method
"B023",
"B028",
"B904",
"B905"
Expand Down
2 changes: 1 addition & 1 deletion tests/bofire/data_models/specs/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def invalidate(self, spec: Spec) -> List[Spec]:
if self.key not in data:
return []
return [
Spec(spec.cls, lambda: {**data, **overwrite})
Spec(spec.cls, lambda data=data, overwrite=overwrite: {**data, **overwrite})
for overwrite in self.overwrites
]

Expand Down

0 comments on commit 3d7b300

Please sign in to comment.