Skip to content

Commit

Permalink
py(deps): ruff 0.2.2 -> 0.3.0, et al. (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony authored Mar 2, 2024
2 parents 55bdd73 + 7e5f2b4 commit f2f01ba
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
python -V
poetry run python -V
- name: Lint with ruff
run: poetry run ruff .
- name: Lint with ruff check
run: poetry run ruff check .

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

- name: Lint with mypy
Expand Down
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ $ pipx install --suffix=@next 'vcspull' --pip-args '\--pre' --force

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

### Development

- ruff 0.2.2 -> 0.3.0 (#441)

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

See also: https://github.com/astral-sh/ruff/blob/v0.3.0/CHANGELOG.md

## vcspull v1.28.1 (2024-02-17)

### Fixes
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
See "pytest_plugins in non-top-level conftest files" in
https://docs.pytest.org/en/stable/deprecations.html
"""

import pathlib
import shutil
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,4 +1,5 @@
"""Sphinx configuration for vcspull documentation."""

# flake8: noqa: E501
import inspect
import pathlib
Expand Down
48 changes: 24 additions & 24 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 scripts/generate_gitlab.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Example script for export gitlab organization to vcspull config file."""

import argparse
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Metadata for vcspull."""

__title__ = "vcspull"
__package_name__ = "vcspull"
__description__ = "Manage and sync multiple git, mercurial, and svn repos"
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:copyright: Copyright 2013-2018 Tony Narlock.
:license: MIT, see LICENSE for details
"""

# Set default logging handler to avoid "No handler found" warnings.
import logging
from logging import NullHandler
Expand Down
7 changes: 3 additions & 4 deletions src/vcspull/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI utilities for vcspull."""

import argparse
import logging
import textwrap
Expand Down Expand Up @@ -30,13 +31,11 @@
@overload
def create_parser(
return_subparsers: t.Literal[True],
) -> tuple[argparse.ArgumentParser, t.Any]:
...
) -> tuple[argparse.ArgumentParser, t.Any]: ...


@overload
def create_parser(return_subparsers: t.Literal[False]) -> argparse.ArgumentParser:
...
def create_parser(return_subparsers: t.Literal[False]) -> argparse.ArgumentParser: ...


def create_parser(
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/cli/sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synchronization functionality for vcspull."""

import argparse
import logging
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration functionality for vcspull."""

import fnmatch
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Colorized formatters for generic logging inside the application is also
provided.
"""

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

import pathlib
import typing as t

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

import os
import pathlib
import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/vcspull/validator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Validation of vcspull configuration file."""

import pathlib
import typing as t

Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Tests for vcspull package."""

from . import fixtures
1 change: 1 addition & 0 deletions tests/fixtures/example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example fixture data for vcspull tests."""

import pathlib
import typing as t

Expand Down
1 change: 1 addition & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers for vcspull."""

import os
import pathlib
import typing as t
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test CLI entry point for for vcspull."""

import contextlib
import pathlib
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for vcspull configuration format."""

import pathlib
import typing as t

Expand Down
1 change: 1 addition & 0 deletions tests/test_config_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for vcspull configuration files."""

import os
import pathlib
import textwrap
Expand Down
1 change: 1 addition & 0 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for placing config dicts into :py:class:`Project` objects."""

import pathlib

from libvcs import BaseSync, GitSync, HgSync, SvnSync
Expand Down
1 change: 1 addition & 0 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for sync functionality of vcspull."""

import pathlib
import textwrap
import typing as t
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for vcspull utilities."""

import pathlib

import pytest
Expand Down

0 comments on commit f2f01ba

Please sign in to comment.