Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk authored Sep 10, 2021
1 parent de0ddad commit 199e8d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ wheelhouse/
pip-wheel-metadata/
# Rever
rever/
# github codespaces
.venv
oryx-build-commands.txt
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
rev: v5.9.3
hooks:
- id: isort
args: [--multi-line=3, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/psf/black
rev: 19.10b0
rev: 21.8b0
hooks:
- id: black
language_version: python3

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.760
rev: v0.910
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML]
9 changes: 7 additions & 2 deletions condax/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ def create_link(exe):
win_path = pathlib.PureWindowsPath(exe)
name_only, _ = os.path.splitext(executable_name)
with open(f"{CONDAX_LINK_DESTINATION}/{name_only}.bat", "w") as fo:
fo.writelines(["@echo off\n", "REM Entrypoint created by condax\n",
f'CALL "{win_path}" %*'])
fo.writelines(
[
"@echo off\n",
"REM Entrypoint created by condax\n",
f'CALL "{win_path}" %*',
]
)
else:
print(os.listdir(CONDAX_LINK_DESTINATION))
os.symlink(exe, f"{CONDAX_LINK_DESTINATION}/{executable_name}")
Expand Down

0 comments on commit 199e8d7

Please sign in to comment.