Skip to content

Commit

Permalink
py(deps): ruff 0.2.2 -> 0.3.0, et al. (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony authored Mar 2, 2024
2 parents 141fb9a + 595b8e3 commit b89ed2f
Show file tree
Hide file tree
Showing 86 changed files with 118 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
- name: Install python dependencies
run: poetry install --with=test,coverage,lint

- name: Lint with ruff .
run: poetry run ruff .
- name: Lint with ruff check .
run: poetry run ruff check .

- name: Format with ruff
run: poetry run ruff format . --check
Expand Down
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force

<!-- Maintainers, insert changes / features for the next release here -->

### Development

- ruff 0.2.2 -> 0.3.0 (#913)

Related formattings. Update CI to use `ruff check .` instead of `ruff .`.

## tmuxp 1.39.0 (2024-02-17)

_Maintenance only, no bug fixes or new features_
Expand Down
1 change: 1 addition & 0 deletions docs/_ext/aafig.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
:author: Leandro Lucarella <[email protected]>
:license: BOLA, see LICENSE for details
"""

import logging
import posixpath
import typing as t
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# flake8: NOQA: E501
"""Sphinx documentation configuration for tmuxp."""

import contextlib
import inspect
import pathlib
Expand Down
54 changes: 27 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/tmuxp/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Metadata for tmuxp package."""

__title__ = "tmuxp"
__package_name__ = "tmuxp"
__version__ = "1.39.0"
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:copyright: Copyright 2013- Tony Narlock.
:license: MIT, see LICENSE for details
"""

from . import cli, util
from .__about__ import (
__author__,
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/_internal/config_reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration parser for YAML and JSON files."""

import json
import pathlib
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/_internal/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
... from tmuxp._internal.types import PluginConfigSchema
...
"""

import typing as t

from typing_extensions import NotRequired, TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI utilities for tmuxp."""

import argparse
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp convert`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/debug_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp debug-info`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/edit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp edit`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/freeze.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp freeze`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/import_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp shell`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/load.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp load`` subcommand."""

import argparse
import importlib
import logging
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/ls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp ls`` subcommand."""

import argparse
import os
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for ``tmuxp shell`` subcommand."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/cli/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI utility helpers for tmuxp."""

import logging
import re
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/exc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Exceptions for tmuxp."""

import typing as t

from libtmux._internal.query_list import ObjectDoesNotExist
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/log.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Log utilities for tmuxp."""

import logging
import time
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plugin system for tmuxp."""

import typing as t

import libtmux
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility and helper methods for tmuxp."""

import logging
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.. _typeshed's: https://github.com/python/typeshed/blob/9687d5/stdlib/_typeshed/__init__.pyi#L98
""" # E501

from os import PathLike
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility and helper methods for tmuxp."""

import logging
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Create a tmux workspace from a workspace :py:obj:`dict`."""

import logging
import time
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Constant variables for tmuxp workspace functionality."""

VALID_WORKSPACE_DIR_FILE_EXTENSIONS = [".yaml", ".yml", ".json"]
1 change: 1 addition & 0 deletions src/tmuxp/workspace/finders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workspace (configuration file) finders for tmuxp."""

import logging
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/freezer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tmux session freezing functionality for tmuxp."""

import typing as t

from libtmux.pane import Pane
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/importers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration import adapters to load teamocil, tmuxinator, etc. in tmuxp."""

import typing as t


Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workspace hydration and loading for tmuxp."""

import logging
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/tmuxp/workspace/validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Validation errors for tmuxp configuration files."""

import typing as t

from .. import exc
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp's core shell functionality."""

import argparse
import contextlib
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp convert."""

import contextlib
import io
import json
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_debug_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp debuginfo."""

import pathlib

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_freeze.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test workspace freezing functionality for tmuxp."""

import contextlib
import io
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_import.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp import."""

import contextlib
import io
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_load.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp load."""

import contextlib
import io
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_ls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp ls command."""

import contextlib
import pathlib

Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tests for tmuxp shell."""

import contextlib
import io
import pathlib
Expand Down
1 change: 1 addition & 0 deletions tests/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constant variables for tmuxp tests."""

import pathlib

TESTS_PATH = pathlib.Path(__file__).parent
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Fixture test data for tmuxp."""

from . import utils
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Teamocil data fixtures for import_teamocil tests."""

from . import layouts, test1, test2, test3, test4
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/layouts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Teamocil data fixtures for import_teamocil tests, for layout testing."""

from .. import utils as test_utils

teamocil_yaml_file = test_utils.get_workspace_file("import_teamocil/layouts.yaml")
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/test1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Teamocil data fixtures for import_teamocil tests, 1st test."""

from .. import utils as test_utils

teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test1.yaml")
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/test2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Teamocil data fixtures for import_teamocil tests, 2nd test."""

from .. import utils as test_utils

teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test2.yaml")
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/test3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Teamocil data fixtures for import_teamocil tests, 3rd test."""

from .. import utils as test_utils

teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test3.yaml")
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/import_teamocil/test4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Teamocil data fixtures for import_teamocil tests, 4th test."""

from .. import utils as test_utils

teamocil_yaml = test_utils.read_workspace_file("import_teamocil/test4.yaml")
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/import_tmuxinator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Tmuxinator data fixtures for import_tmuxinator tests."""

from . import test1, test2, test3
Loading

0 comments on commit b89ed2f

Please sign in to comment.