Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#81)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.7...v0.5.0)

* Fix SIM103

* Fix missing references

Somehow they are different in CI than locally...

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
  • Loading branch information
pre-commit-ci[bot] and hynek authored Jul 2, 2024
1 parent 6a3dcfa commit 5ebb3db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
nitpick_ignore = [
("py:class", "environ._environ_config.T"),
("py:class", "environ._environ_config.Sentinel"),
# Different in CI:
("py:class", "T"),
("py:class", "Sentinel"),
]

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
5 changes: 1 addition & 4 deletions src/environ/_environ_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ def _env_to_bool(val: str | bool) -> bool:
"""
if isinstance(val, bool):
return val
if val.strip().lower() in ("1", "true", "yes"):
return True

return False
return val.strip().lower() in ("1", "true", "yes")


def bool_var(
Expand Down

0 comments on commit 5ebb3db

Please sign in to comment.