Skip to content

Bump black from 23.3.0 to 24.3.0 #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Coding-Conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ Imports come _after_ module comments and docstrings and _before_ module globals
```python
# Bad
"""Module Docstring."""

URL = "http://python.org"

import ministry
Expand Down
1 change: 1 addition & 0 deletions ni_python_styleguide/_format.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Linting methods."""

import contextlib
from io import StringIO

Expand Down
4 changes: 2 additions & 2 deletions ni_python_styleguide/_lint.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Linting methods."""

import contextlib
import io

import flake8.main.application

from ni_python_styleguide import _config_constants
from ni_python_styleguide import _Flake8Error
from ni_python_styleguide import _config_constants, _Flake8Error


def lint(qs_or_vs, exclude, app_import_names, format, extend_ignore, file_or_dir):
Expand Down
104 changes: 30 additions & 74 deletions poetry.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""example of a python file with linter errors in flow and structure of code.
"""


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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide example cases of imports that need sorting and a file that needs formatted."""

import pathlib
from os import access, path
from typing import ( # noqa: F401 - un-used import comment that is actually used, should get removed in --aggressive (auto-generated noqa)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide example cases of imports that need sorting and a file that needs formatted."""

import pathlib
from os import access, path
from typing import Hashable, Iterable, List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide a more complex example with some corner cases."""

import fileinput
import logging
import pathlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide a more complex example with some corner cases."""

import fileinput
import logging
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the _utils submodule."""

import pytest

from ni_python_styleguide import _utils
Expand Down
Loading