Skip to content

Commit

Permalink
Merge pull request #113 from sbidoul/mv-scripts
Browse files Browse the repository at this point in the history
Move scripts for clarity
  • Loading branch information
sbidoul authored Sep 1, 2023
2 parents 26e51ea + b7d022b commit 6282a4d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: |
(?x)
^src/pip_deepfreeze/env_info_json.py|
^src/pip_deepfreeze/pip_list_json.py|
^src/pip_deepfreeze/env-info-json.py|
^src/pip_deepfreeze/pip-list-json.py|
^src/pip_deepfreeze/req_file_parser.py|
^tests/conftest.py|
^tests/test_pip_list_json.py
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ select = [
"E", "F", "W", "C90", "B", "I", "UP", "RUF"
]
exclude = [
"src/pip_deepfreeze/pip_list_json.py",
"src/pip_deepfreeze/env_info_json.py",
"src/pip_deepfreeze/pip-list-json.py",
"src/pip_deepfreeze/env-info-json.py",
"tests/test_pip_list_json.py",
"tests/test_env_info_json.py",
]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pip_deepfreeze/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def pip_upgrade_project(


def _pip_list__env_info_json(python: str) -> InstalledDistributions:
with resource_path("pip_deepfreeze", "pip_list_json.py") as pip_list_json:
with resource_path("pip_deepfreeze", "pip-list-json.py") as pip_list_json:
json_dists = json.loads(check_output([python, str(pip_list_json)]))
dists = [EnvInfoInstalledDistribution(json_dist) for json_dist in json_dists]
return {dist.name: dist for dist in dists}
Expand Down
2 changes: 1 addition & 1 deletion src/pip_deepfreeze/sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EnvInfo(TypedDict, total=False):

@lru_cache
def _get_env_info(python: str) -> EnvInfo:
with resource_path("pip_deepfreeze", "env_info_json.py") as env_info_json_script:
with resource_path("pip_deepfreeze", "env-info-json.py") as env_info_json_script:
try:
env_info_json = subprocess.check_output(
[python, str(env_info_json_script)], text=True
Expand Down
2 changes: 1 addition & 1 deletion tests/test_env_info_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# /!\ this test file must be python 2 compatible /!\
ENV_INFO_JSON = os.path.join(
os.path.dirname(__file__), "..", "src", "pip_deepfreeze", "env_info_json.py"
os.path.dirname(__file__), "..", "src", "pip_deepfreeze", "env-info-json.py"
)


Expand Down
2 changes: 1 addition & 1 deletion tests/test_pip_list_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# /!\ this test file must be python 2 compatible /!\
PIP_LIST_JSON = os.path.join(
os.path.dirname(__file__), "..", "src", "pip_deepfreeze", "pip_list_json.py"
os.path.dirname(__file__), "..", "src", "pip_deepfreeze", "pip-list-json.py"
)


Expand Down

0 comments on commit 6282a4d

Please sign in to comment.