Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3070)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 25, 2023
1 parent b9c0a67 commit b3fc5ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
- id: blacken-docs
additional_dependencies: [black==23.3]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.278"
rev: "v0.0.280"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/tox/session/cmd/devenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def devenv(state: State) -> int:
usedevelop=True, # dev environments must be of type dev
env_dir=opt.devenv_path, # move it in source
)
state.conf.memory_seed_loaders[list(opt.env)[0]].append(loader)
state.conf.memory_seed_loaders[next(iter(opt.env))].append(loader)

state.envs.ensure_only_run_env_is_active()
envs = list(state.envs.iter())
Expand Down
18 changes: 6 additions & 12 deletions tests/demo_pkg_inline/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ def tox_register_tox_env(register: ToxEnvRegister) -> None:
""",
}
metadata_files = {
entry_points: """
entry_points: f"""
[tox]
example = {}.example_plugin""".format(
name,
),
example = {name}.example_plugin""",
metadata: """
Metadata-Version: 2.1
Name: {}
Expand All @@ -65,16 +63,12 @@ def tox_register_tox_env(register: ToxEnvRegister) -> None:
version,
"\n ".join(os.environ.get("METADATA_EXTRA", "").split("\n")),
),
wheel: """
wheel: f"""
Wheel-Version: 1.0
Generator: {}-{}
Generator: {name}-{version}
Root-Is-Purelib: true
Tag: py{}-none-any
""".format(
name,
version,
sys.version_info[0],
),
Tag: py{sys.version_info[0]}-none-any
""",
f"{dist_info}/top_level.txt": name,
record: """
{0}/__init__.py,,
Expand Down

0 comments on commit b3fc5ca

Please sign in to comment.