Skip to content
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
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
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ $ pipx install --suffix=@next g --pip-args '\--pre' --force

### Development

- ruff 0.2.2 -> 0.3.0 (#22)

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
- Strengthen linting (#21)

- Add flake8-commas (COM)
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup pytest for g."""

import pytest


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 configuration for g."""

import contextlib
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 src/g/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Metadata package for g."""

__title__ = "g"
__package_name__ = "g"
__description__ = "cli shortcut for directory's vcs command: git, svn, hg"
Expand Down
1 change: 1 addition & 0 deletions src/g/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Package for g."""

import os
import pathlib
import subprocess
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 @@
"""Tests for g's CLI package."""

import subprocess
import typing as t
from unittest.mock import patch
Expand Down