Fix: black error on pre-commit
This commit is contained in:
parent
63fc1ffd0e
commit
14a8f2b477
2 changed files with 5 additions and 2 deletions
1
Makefile
1
Makefile
|
|
@ -8,6 +8,7 @@ test:
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
black erminig tests
|
black erminig tests
|
||||||
|
git add erminig tests
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
podman-compose -f docker-compose.yml build
|
podman-compose -f docker-compose.yml build
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,9 @@ def run_as_user(username):
|
||||||
if pid > 0:
|
if pid > 0:
|
||||||
# Parent : attendre le child, ne pas exit, juste return proprement
|
# Parent : attendre le child, ne pas exit, juste return proprement
|
||||||
_, status = os.waitpid(pid, 0)
|
_, status = os.waitpid(pid, 0)
|
||||||
return status >> 8 # récupère le code retour du fils (comme exit code)
|
return (
|
||||||
|
status >> 8
|
||||||
|
) # récupère le code retour du fils (comme exit code)
|
||||||
|
|
||||||
# Child
|
# Child
|
||||||
pw_record = pwd.getpwnam(username)
|
pw_record = pwd.getpwnam(username)
|
||||||
|
|
@ -60,4 +62,4 @@ def run_as_user(username):
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue