Skip to content

Commit b3147f8

Browse files
Bump black from 23.3.0 to 24.3.0 (#220)
1 parent eca61ac commit b3147f8

File tree

10 files changed

+39
-77
lines changed

10 files changed

+39
-77
lines changed

docs/Coding-Conventions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ Imports come _after_ module comments and docstrings and _before_ module globals
716716
```python
717717
# Bad
718718
"""Module Docstring."""
719+
719720
URL = "http://python.org"
720721

721722
import ministry

ni_python_styleguide/_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Linting methods."""
2+
23
import contextlib
34
from io import StringIO
45

ni_python_styleguide/_lint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Linting methods."""
2+
23
import contextlib
34
import io
45

56
import flake8.main.application
67

7-
from ni_python_styleguide import _config_constants
8-
from ni_python_styleguide import _Flake8Error
8+
from ni_python_styleguide import _config_constants, _Flake8Error
99

1010

1111
def lint(qs_or_vs, exclude, app_import_names, format, extend_ignore, file_or_dir):

poetry.lock

Lines changed: 30 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/structural_tests/output__aggressive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""example of a python file with linter errors in flow and structure of code.
22
"""
33

4-
54
l = 5 # noqa: E741 - ambiguous variable name 'l' (auto-generated noqa)
65
y = False
76

tests/test_cli/fix_test_cases__snapshots/basic_example/output.py.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide example cases of imports that need sorting and a file that needs formatted."""
2+
23
import pathlib
34
from os import access, path
45
from typing import ( # noqa: F401 - un-used import comment that is actually used, should get removed in --aggressive (auto-generated noqa)

tests/test_cli/fix_test_cases__snapshots/basic_example/output__aggressive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide example cases of imports that need sorting and a file that needs formatted."""
2+
23
import pathlib
34
from os import access, path
45
from typing import Hashable, Iterable, List

tests/test_cli/fix_test_cases__snapshots/more_complicated_example/output.py.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide a more complex example with some corner cases."""
2+
23
import fileinput
34
import logging
45
import pathlib

tests/test_cli/fix_test_cases__snapshots/more_complicated_example/output__aggressive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide a more complex example with some corner cases."""
2+
23
import fileinput
34
import logging
45
import pathlib

tests/test_cli/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the _utils submodule."""
2+
23
import pytest
34

45
from ni_python_styleguide import _utils

0 commit comments

Comments
 (0)