Skip to content

Commit

Permalink
chore(deps-dev): bump ruff from 0.0.282 to 0.0.284 (#59)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump ruff from 0.0.282 to 0.0.284

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.282 to 0.0.284.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](astral-sh/ruff@v0.0.282...v0.0.284)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(types): use future annotations

* formatting

* fix(types): can't use future annotations in doc_examples

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt Anderson <matt@manderscience.com>
  • Loading branch information
dependabot[bot] and maxb2 authored Aug 14, 2023
1 parent ae96644 commit 578c9de
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 32 deletions.
10 changes: 7 additions & 3 deletions duties.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
"""Project Duties."""

from __future__ import annotations

import os
from typing import Optional, Tuple
from typing import TYPE_CHECKING, Optional, Tuple

from duty import duty
from duty.callables import blacken_docs, mkdocs, mypy
from duty.context import Context
from git_changelog import Changelog
from git_changelog.cli import build_and_render

if TYPE_CHECKING:
from duty.context import Context
from git_changelog import Changelog

CI = os.environ.get("CI", "0") in {"1", "true", "yes", ""}
WINDOWS = os.name == "nt"
PTY = not WINDOWS and not CI
Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

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

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ yaml = ["pyyaml"]
all = ["toml", "pyyaml", "python-dotenv"]

[tool.poetry.group.dev.dependencies]
ruff = ">=0.0.263,<0.0.283"
ruff = ">=0.0.263,<0.0.285"
pylint = "^2.17.3"
black = "^23.3.0"
isort = "^5.12.0"
Expand Down Expand Up @@ -123,6 +123,7 @@ extend-ignore = ["D202", "D205", "D107"]

[tool.ruff.extend-per-file-ignores]
"tests/*.py" = ["ANN", "S", "ARG001", "B008", "RUF015"]
"tests/doc_examples.py" = ["FA100"]
"docs_gen_files.py" = ["ANN201"]
"duties.py" = ["ANN201", "ARG001"]

Expand Down
3 changes: 3 additions & 0 deletions tests/doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
For now, it works.
"""

# NOTE: using "from __future__ import annotations" completely breaks
# this file for some reason.

import os
import re
from collections import OrderedDict
Expand Down
22 changes: 13 additions & 9 deletions typer_config/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
These loaders must implement the `typer_config.__typing.ConfigLoader` interface.
"""
from __future__ import annotations

import json
from configparser import ConfigParser
from typing import Optional
from typing import TYPE_CHECKING, Optional

from .__optional_imports import try_import
from .__typing import (
ConfigDict,
ConfigDictTransformer,
ConfigLoader,
ConfigLoaderConditional,
TyperParameterValue,
TyperParameterValueTransformer,
)

if TYPE_CHECKING: # pragma: no cover
from .__typing import (
ConfigDict,
ConfigDictTransformer,
ConfigLoader,
ConfigLoaderConditional,
TyperParameterValue,
TyperParameterValueTransformer,
)


def loader_transformer(
Expand Down

0 comments on commit 578c9de

Please sign in to comment.