Skip to content

Commit

Permalink
Merge pull request #963 from jupyterhub/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
consideRatio authored Feb 6, 2024
2 parents 6dd2ee8 + b35851f commit 2faf0d3
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand All @@ -64,7 +64,7 @@ repos:

# Lint: Python code
- repo: https://github.com/pycqa/flake8
rev: "6.1.0"
rev: "7.0.0"
hooks:
- id: flake8

Expand Down
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 2faf0d3

Please sign in to comment.