Skip to content

Commit

Permalink
Use stable ruff 0.3.0 (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Perez <[email protected]>
  • Loading branch information
Tomperez98 and coactive-tomas authored Mar 1, 2024
1 parent c6c7531 commit 7f5847b
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 35 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pyrgo"
version = "2.2.11"
version = "2.2.12"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
Expand All @@ -17,7 +17,7 @@ authors = [
]
dependencies = [
"click < 9",
"ruff < 1",
"ruff >= 0.3.0, < 1",
"mypy < 2",
"pytest < 8",
"result < 1",
Expand Down
1 change: 1 addition & 0 deletions pyrgo/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI entrypoint."""

from __future__ import annotations

import click
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/add.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Add command."""

from __future__ import annotations

import click
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/audit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Audit command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Build command."""

from __future__ import annotations

import sys
Expand Down
3 changes: 2 additions & 1 deletion pyrgo/cmds/check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check command."""

from __future__ import annotations

import sys
Expand Down Expand Up @@ -63,7 +64,7 @@ def check(*, timeout: int, add_noqa: bool, ignore_noqa: bool) -> None:
configuration = PyrgoConf()
ruff_command = PythonCommandExec(
program="ruff",
)
).add_args(args=["check"])
mypy_command = PythonCommandExec(
program="mypy.dmypy",
).add_args(
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/clean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Clean command."""

from __future__ import annotations

import itertools
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/doc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Doc command."""

from __future__ import annotations

from typing import Optional
Expand Down
3 changes: 2 additions & 1 deletion pyrgo/cmds/fix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fix command."""

from __future__ import annotations

import sys
Expand All @@ -19,7 +20,7 @@ def fix() -> None:
PythonCommandExec(
program="ruff",
)
.add_args(args=["--unsafe-fixes", "--fix"])
.add_args(args=["check", "--unsafe-fixes", "--fix"])
.add_args(configuration.relevant_paths)
)

Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/fmt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Format command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/lock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Lock command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/new.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""New command."""

from __future__ import annotations

import pathlib
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/remove.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Remove command."""

from __future__ import annotations

import click
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sync command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions pyrgo/cmds/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test command."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions pyrgo/command_exec.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command execution module."""

from __future__ import annotations

import subprocess
Expand Down
1 change: 1 addition & 0 deletions pyrgo/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pyrgo configuration."""

from __future__ import annotations

import pathlib
Expand Down
1 change: 1 addition & 0 deletions pyrgo/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Typing module."""

from __future__ import annotations

from typing import TYPE_CHECKING, Literal
Expand Down
1 change: 1 addition & 0 deletions pyrgo/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI utilities."""

from __future__ import annotations

import sys
Expand Down
30 changes: 15 additions & 15 deletions requirements/core.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# This file was autogenerated by uv v0.1.5 via the following command:
# uv pip compile --upgrade --no-cache -o requirements/core.txt pyproject.toml
# This file was autogenerated by uv via the following command:
# uv pip compile --no-cache -o requirements/core.txt pyproject.toml
boolean-py==4.0
# via license-expression
build==1.0.3
build==1.1.1
cachecontrol==0.14.0
# via pip-audit
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
cyclonedx-python-lib==6.4.1
cyclonedx-python-lib==6.4.2
# via pip-audit
defusedxml==0.7.1
# via py-serializable
Expand Down Expand Up @@ -39,14 +39,14 @@ markupsafe==2.1.5
mashumaro==3.12
mdurl==0.1.2
# via markdown-it-py
msgpack==1.0.7
msgpack==1.0.8
# via cachecontrol
mypy==1.8.0
mypy-extensions==1.0.0
# via mypy
orjson==3.9.14
orjson==3.9.15
# via mashumaro
packageurl-python==0.13.4
packageurl-python==0.14.0
# via cyclonedx-python-lib
packaging==23.2
# via
Expand All @@ -59,12 +59,12 @@ pip==24.0
# via pip-api
pip-api==0.0.33
# via pip-audit
pip-audit==2.7.1
pip-audit==2.7.2
pip-requirements-parser==32.0.1
# via pip-audit
pluggy==1.4.0
# via pytest
py-serializable==1.0.1
py-serializable==1.0.2
# via cyclonedx-python-lib
pygments==2.17.2
# via
Expand All @@ -79,10 +79,10 @@ requests==2.31.0
# via
# cachecontrol
# pip-audit
result==0.16.0
rich==13.7.0
result==0.16.1
rich==13.7.1
# via pip-audit
ruff==0.2.2
ruff==0.3.0
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -99,15 +99,15 @@ tomli==2.0.1
# vulture
tomli-w==1.0.0
# via mashumaro
tomlkit==0.12.3
typing-extensions==4.9.0
tomlkit==0.12.4
typing-extensions==4.10.0
# via
# mashumaro
# mypy
# result
urllib3==2.2.1
# via requests
uv==0.1.5
uv==0.1.13
vulture==2.11
webencodings==0.5.1
# via html5lib
Expand Down
32 changes: 16 additions & 16 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# This file was autogenerated by uv v0.1.5 via the following command:
# uv pip compile --upgrade --extra dev --no-cache -o requirements/dev.txt pyproject.toml
# This file was autogenerated by uv via the following command:
# uv pip compile --extra dev --no-cache -o requirements/dev.txt pyproject.toml
boolean-py==4.0
# via license-expression
build==1.0.3
build==1.1.1
cachecontrol==0.14.0
# via pip-audit
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
coverage==7.4.1
coverage==7.4.3
# via pytest-cov
cyclonedx-python-lib==6.4.1
cyclonedx-python-lib==6.4.2
# via pip-audit
defusedxml==0.7.1
# via py-serializable
Expand Down Expand Up @@ -41,14 +41,14 @@ markupsafe==2.1.5
mashumaro==3.12
mdurl==0.1.2
# via markdown-it-py
msgpack==1.0.7
msgpack==1.0.8
# via cachecontrol
mypy==1.8.0
mypy-extensions==1.0.0
# via mypy
orjson==3.9.14
orjson==3.9.15
# via mashumaro
packageurl-python==0.13.4
packageurl-python==0.14.0
# via cyclonedx-python-lib
packaging==23.2
# via
Expand All @@ -61,12 +61,12 @@ pip==24.0
# via pip-api
pip-api==0.0.33
# via pip-audit
pip-audit==2.7.1
pip-audit==2.7.2
pip-requirements-parser==32.0.1
# via pip-audit
pluggy==1.4.0
# via pytest
py-serializable==1.0.1
py-serializable==1.0.2
# via cyclonedx-python-lib
pygments==2.17.2
# via
Expand All @@ -83,10 +83,10 @@ requests==2.31.0
# via
# cachecontrol
# pip-audit
result==0.16.0
rich==13.7.0
result==0.16.1
rich==13.7.1
# via pip-audit
ruff==0.2.2
ruff==0.3.0
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -104,16 +104,16 @@ tomli==2.0.1
# vulture
tomli-w==1.0.0
# via mashumaro
tomlkit==0.12.3
tomlkit==0.12.4
types-toml==0.10.8.7
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# mashumaro
# mypy
# result
urllib3==2.2.1
# via requests
uv==0.1.5
uv==0.1.13
vulture==2.11
webencodings==0.5.1
# via html5lib
Expand Down
1 change: 1 addition & 0 deletions scripts/new_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""New release."""

from __future__ import annotations

import pathlib
Expand Down

0 comments on commit 7f5847b

Please sign in to comment.