Skip to content

Commit b89ed2f

Browse files
authored
py(deps): ruff 0.2.2 -> 0.3.0, et al. (#913)
See also: https://github.com/astral-sh/ruff/blob/v0.3.0/CHANGELOG.md
2 parents 141fb9a + 595b8e3 commit b89ed2f

File tree

86 files changed

+118
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+118
-30
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
- name: Install python dependencies
5656
run: poetry install --with=test,coverage,lint
5757

58-
- name: Lint with ruff .
59-
run: poetry run ruff .
58+
- name: Lint with ruff check .
59+
run: poetry run ruff check .
6060

6161
- name: Format with ruff
6262
run: poetry run ruff format . --check

CHANGES

Lines changed: 6 additions & 0 deletions

docs/_ext/aafig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:author: Leandro Lucarella <llucax@gmail.com>
1212
:license: BOLA, see LICENSE for details
1313
"""
14+
1415
import logging
1516
import posixpath
1617
import typing as t

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# flake8: NOQA: E501
22
"""Sphinx documentation configuration for tmuxp."""
3+
34
import contextlib
45
import inspect
56
import pathlib

poetry.lock

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

src/tmuxp/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Metadata for tmuxp package."""
2+
23
__title__ = "tmuxp"
34
__package_name__ = "tmuxp"
45
__version__ = "1.39.0"

src/tmuxp/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:copyright: Copyright 2013- Tony Narlock.
55
:license: MIT, see LICENSE for details
66
"""
7+
78
from . import cli, util
89
from .__about__ import (
910
__author__,

src/tmuxp/_internal/config_reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configuration parser for YAML and JSON files."""
2+
23
import json
34
import pathlib
45
import typing as t

src/tmuxp/_internal/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
... from tmuxp._internal.types import PluginConfigSchema
1010
...
1111
"""
12+
1213
import typing as t
1314

1415
from typing_extensions import NotRequired, TypedDict

src/tmuxp/cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI utilities for tmuxp."""
2+
23
import argparse
34
import logging
45
import os

src/tmuxp/cli/convert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp convert`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/debug_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp debug-info`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/edit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp edit`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/freeze.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp freeze`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/import_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp shell`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/load.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp load`` subcommand."""
2+
23
import argparse
34
import importlib
45
import logging

src/tmuxp/cli/ls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp ls`` subcommand."""
2+
23
import argparse
34
import os
45
import typing as t

src/tmuxp/cli/shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for ``tmuxp shell`` subcommand."""
2+
23
import argparse
34
import os
45
import pathlib

src/tmuxp/cli/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI utility helpers for tmuxp."""
2+
23
import logging
34
import re
45
import typing as t

src/tmuxp/exc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Exceptions for tmuxp."""
2+
23
import typing as t
34

45
from libtmux._internal.query_list import ObjectDoesNotExist

src/tmuxp/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Log utilities for tmuxp."""
3+
34
import logging
45
import time
56
import typing as t

src/tmuxp/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plugin system for tmuxp."""
2+
23
import typing as t
34

45
import libtmux

src/tmuxp/shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility and helper methods for tmuxp."""
2+
23
import logging
34
import os
45
import pathlib

src/tmuxp/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
.. _typeshed's: https://github.com/python/typeshed/blob/9687d5/stdlib/_typeshed/__init__.pyi#L98
88
""" # E501
9+
910
from os import PathLike
1011
from typing import Union
1112

src/tmuxp/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility and helper methods for tmuxp."""
2+
23
import logging
34
import os
45
import pathlib

src/tmuxp/workspace/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Create a tmux workspace from a workspace :py:obj:`dict`."""
2+
23
import logging
34
import time
45
import typing as t

src/tmuxp/workspace/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Constant variables for tmuxp workspace functionality."""
2+
23
VALID_WORKSPACE_DIR_FILE_EXTENSIONS = [".yaml", ".yml", ".json"]

src/tmuxp/workspace/finders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Workspace (configuration file) finders for tmuxp."""
2+
23
import logging
34
import os
45
import pathlib

src/tmuxp/workspace/freezer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tmux session freezing functionality for tmuxp."""
2+
23
import typing as t
34

45
from libtmux.pane import Pane

src/tmuxp/workspace/importers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configuration import adapters to load teamocil, tmuxinator, etc. in tmuxp."""
2+
23
import typing as t
34

45

src/tmuxp/workspace/loader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Workspace hydration and loading for tmuxp."""
2+
23
import logging
34
import os
45
import pathlib

src/tmuxp/workspace/validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Validation errors for tmuxp configuration files."""
2+
23
import typing as t
34

45
from .. import exc

tests/cli/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp's core shell functionality."""
2+
23
import argparse
34
import contextlib
45
import pathlib

tests/cli/test_convert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp convert."""
2+
23
import contextlib
34
import io
45
import json

tests/cli/test_debug_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp debuginfo."""
2+
23
import pathlib
34

45
import pytest

tests/cli/test_freeze.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test workspace freezing functionality for tmuxp."""
2+
23
import contextlib
34
import io
45
import pathlib

tests/cli/test_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp import."""
2+
23
import contextlib
34
import io
45
import pathlib

tests/cli/test_load.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp load."""
2+
23
import contextlib
34
import io
45
import pathlib

tests/cli/test_ls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp ls command."""
2+
23
import contextlib
34
import pathlib
45

tests/cli/test_shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI tests for tmuxp shell."""
2+
23
import contextlib
34
import io
45
import pathlib

tests/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Constant variables for tmuxp tests."""
2+
23
import pathlib
34

45
TESTS_PATH = pathlib.Path(__file__).parent

tests/fixtures/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Fixture test data for tmuxp."""
2+
23
from . import utils
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Teamocil data fixtures for import_teamocil tests."""
2+
23
from . import layouts, test1, test2, test3, test4

tests/fixtures/import_teamocil/layouts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Teamocil data fixtures for import_teamocil tests, for layout testing."""
2+
23
from .. import utils as test_utils
34

45
teamocil_yaml_file = test_utils.get_workspace_file("import_teamocil/layouts.yaml")

tests/fixtures/import_teamocil/test1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Teamocil data fixtures for import_teamocil tests, 1st test."""
2+
23
from .. import utils as test_utils
34

45
teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test1.yaml")

tests/fixtures/import_teamocil/test2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Teamocil data fixtures for import_teamocil tests, 2nd test."""
2+
23
from .. import utils as test_utils
34

45
teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test2.yaml")

tests/fixtures/import_teamocil/test3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Teamocil data fixtures for import_teamocil tests, 3rd test."""
2+
23
from .. import utils as test_utils
34

45
teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test3.yaml")

tests/fixtures/import_teamocil/test4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Teamocil data fixtures for import_teamocil tests, 4th test."""
2+
23
from .. import utils as test_utils
34

45
teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test4.yaml")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Tmuxinator data fixtures for import_tmuxinator tests."""
2+
23
from . import test1, test2, test3

0 commit comments

Comments
 (0)