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 Feb 5, 2024
1 parent 9755938 commit b35851f
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
can also pass a branch name such as 'main' or a
commit hash.
"""

import logging
import multiprocessing
import os
Expand Down
1 change: 1 addition & 0 deletions integration-tests/plugins/simplest/tljh_simplest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Simplest plugin that exercises all the hooks defined in tljh/hooks.py.
"""

from tljh.hooks import hookimpl


Expand Down
1 change: 1 addition & 0 deletions integration-tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
first two could be more like unit tests. Ideally, this file is
significantly reduced.
"""

import concurrent.futures
import os
import subprocess
Expand Down
1 change: 1 addition & 0 deletions integration-tests/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""tests for the proxy"""

import os
import shutil
import ssl
Expand Down
1 change: 1 addition & 0 deletions integration-tests/test_simplest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test the plugin in integration-tests/plugins/simplest that makes use of all tljh
recognized plugin hooks that are defined in tljh/hooks.py.
"""

import os
import subprocess

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pytest fixtures"""

import os
import types
from importlib import reload
Expand Down
1 change: 1 addition & 0 deletions tests/test_conda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test conda commandline wrappers
"""

import os
import subprocess
import tempfile
Expand Down
1 change: 1 addition & 0 deletions tests/test_installer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Unit test functions in installer.py
"""

import json
import os
from subprocess import PIPE, run
Expand Down
1 change: 1 addition & 0 deletions tests/test_migrator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Unit test functions in installer.py
"""

import os
from datetime import date

Expand Down
1 change: 1 addition & 0 deletions tests/test_normalize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test functions for normalizing various kinds of values
"""

from tljh.normalize import generate_system_username


Expand Down
1 change: 1 addition & 0 deletions tests/test_traefik.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test traefik configuration"""

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_user.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test wrappers in tljw.user module
"""

import grp
import os
import os.path
Expand Down
1 change: 1 addition & 0 deletions tljh/apt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utilities for working with the apt package manager
"""

import os
import subprocess

Expand Down
1 change: 1 addition & 0 deletions tljh/conda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrap conda commandline program
"""

import contextlib
import hashlib
import json
Expand Down
1 change: 1 addition & 0 deletions tljh/hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Hook specifications that pluggy plugins can override
"""

import pluggy

hookspec = pluggy.HookspecMarker("tljh")
Expand Down
1 change: 1 addition & 0 deletions tljh/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup tljh logging"""

import logging
import os

Expand Down
1 change: 1 addition & 0 deletions tljh/normalize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions to normalize various inputs
"""

import hashlib


Expand Down
1 change: 1 addition & 0 deletions tljh/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
If we use a debian package instead, we can get rid of all this code.
"""

import os
import subprocess

Expand Down
1 change: 1 addition & 0 deletions tljh/traefik.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Traefik installation and setup"""

import hashlib
import io
import logging
Expand Down
1 change: 1 addition & 0 deletions tljh/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Supports minimal user & group management
"""

import grp
import pwd
import subprocess
Expand Down
1 change: 1 addition & 0 deletions tljh/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Miscellaneous functions useful in at least two places unrelated to each other
"""

import logging
import re
import subprocess
Expand Down
1 change: 1 addition & 0 deletions tljh/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ensures the same yaml settings for reading/writing
throughout tljh
"""

from ruamel.yaml import YAML
from ruamel.yaml.composer import Composer

Expand Down

0 comments on commit b35851f

Please sign in to comment.