Skip to content

Commit

Permalink
Bump pylint from 2.15.10 to 2.16.0 (#332)
Browse files Browse the repository at this point in the history
* Bump pylint from 2.15.10 to 2.16.0

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.10 to 2.16.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](pylint-dev/pylint@v2.15.10...v2.16.0)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use more specific exceptions

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruslan Sayfutdinov <[email protected]>
  • Loading branch information
dependabot[bot] and KapJI committed Feb 1, 2023
1 parent 6365d54 commit 0564a92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cgt_calc/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def is_date(date: datetime.date) -> bool:
"""Check if date has only date but not time."""
if not isinstance(date, datetime.date) or isinstance(date, datetime.datetime):
raise Exception(f'should be datetime.date: {type(date)} "{date}"')
raise ValueError(f'should be datetime.date: {type(date)} "{date}"')
return True


Expand Down
2 changes: 1 addition & 1 deletion cgt_calc/parsers/schwab.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get(self, date: datetime.date, symbol: str) -> Decimal:
and symbol in self.award_prices[to_search]
):
return self.award_prices[to_search][symbol]
raise Exception(f"Award price is not found for symbol {symbol} for date {date}")
raise KeyError(f"Award price is not found for symbol {symbol} for date {date}")


def action_from_str(label: str) -> ActionType:
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ isort = "^5.12.0"
mypy = "^0.991"
pandas = "^1.5.3"
pre-commit = "^3.0.2"
pylint = "^2.15.10"
pylint = "^2.16.0"
pytest = "^7.2.1"

[tool.poetry.scripts]
Expand Down

0 comments on commit 0564a92

Please sign in to comment.