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
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Install Dependencies
run: poetry install

- name: Run Black
run: poetry run task black --check
- name: Run format
run: poetry run task format --check

- name: Run safety
run: poetry export -f requirements.txt | poetry run safety check --bare --stdin
Expand Down
2 changes: 1 addition & 1 deletion lib/binarylane/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Contains shared errors types that can be raised from API functions """
"""Contains shared errors types that can be raised from API functions"""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion lib/binarylane/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Contains some shared types for properties """
"""Contains some shared types for properties"""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

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

10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ bl = "binarylane.console.__main__:main"

[tool.poetry.group.dev.dependencies]
taskipy = "^1.10.3"
black = "*"
mypy = "*"
types-python-dateutil = "^2.8.19"
pytest = "^7.2.0"
Expand All @@ -29,24 +28,21 @@ ruff = "^0.9.6"

[tool.taskipy.tasks]
generate = "python scripts/generate.py"
black = "black ."
format = "ruff format ."
isort = "ruff check --select I . --fix"
mypy = "mypy ."
ruff = "ruff check src"
safety = "poetry export -f requirements.txt | safety check --bare --stdin"
test = "pytest tests"
check = "task isort && task black && task mypy && task ruff && task test && task safety"

[tool.black]
line-length = 120
target_version = ["py37"]
check = "task isort && task format && task mypy && task ruff && task test && task safety"

[tool.ruff]
# Always generate Python 3.8-compatible code.
target-version = "py38"
line-length = 120
exclude = [
"api", # generated command classes
".venv"
]

[tool.ruff.lint]
Expand Down
6 changes: 3 additions & 3 deletions src/binarylane/console/parser/list_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def configure(self, parser: Parser) -> None:
parser.add_group_help(title=self.title, description=self.description, entries=usage_descriptions)

parser.add_keyword(self.keyword)
parser.add_argument(self.attribute_name, type=str, nargs=argparse.PARSER, help=argparse.SUPPRESS).required = (
False
)
parser.add_argument(
self.attribute_name, type=str, nargs=argparse.PARSER, help=argparse.SUPPRESS
).required = False

def _create_singlestore_action(self, **kwargs: Any) -> argparse.Action:
action = SingleStoreAction(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/binarylane/pycompat/actions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" BooleanOptionalAction imported from 3.9 """
"""BooleanOptionalAction imported from 3.9"""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tests/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" This package contains some "frozen" and/or simplified replicas of BinaryLane API model objects """
"""This package contains some "frozen" and/or simplified replicas of BinaryLane API model objects"""

from __future__ import annotations
Loading