Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #3070

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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