Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 17, 2023
1 parent 0bd5a4c commit a440306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setuptools_scm/_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read_named_env(
if dist_name is not None:
# Normalize the dist name as per PEP 503.
normalized_dist_name = re.sub(r"[-_.]+", "-", dist_name)
env_var_dist_name = normalized_dist_name.replace('-', '_').upper()
env_var_dist_name = normalized_dist_name.replace("-", "_").upper()
val = os.environ.get(f"{tool}_{name}_FOR_{env_var_dist_name}")
if val is not None:
return val
Expand Down

0 comments on commit a440306

Please sign in to comment.