Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
3 changes: 0 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ jobs:
- name: Run Black
run: poetry run task black --check

- name: Run isort
run: poetry run task isort --check

- name: Run safety
run: poetry export -f requirements.txt | poetry run safety check --bare --stdin

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.

24 changes: 10 additions & 14 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"
isort = "*"
black = "*"
mypy = "*"
types-python-dateutil = "^2.8.19"
Expand All @@ -31,24 +30,13 @@ ruff = "^0.9.6"
[tool.taskipy.tasks]
generate = "python scripts/generate.py"
black = "black ."
isort = "isort ."
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.isort]
py_version = 37
line_length = 120
profile = "black"
sections=['FUTURE', 'STDLIB', 'COMPAT', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
no_lines_before=["COMPAT"]
known_compat=["binarylane.pycompat"]
known_first_party=["binarylane"]
known_local_folder=["binarylane.console"]
add_imports=["from __future__ import annotations"]

[tool.black]
line-length = 120
target_version = ["py37"]
Expand All @@ -62,9 +50,17 @@ exclude = [
]

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "TC", "PL"]
select = ["E4", "E7", "E9", "F", "TC", "PL", "I"]
ignore = ["PLR"]

[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "compat", "third-party", "first-party", "local-folder"]
no-lines-before = ["compat"]
sections = { "compat" = ["binarylane.pycompat"] }
known-first-party = ["binarylane"]
known-local-folder = ["binarylane.console"]
required-imports = ["from __future__ import annotations"]

[tool.mypy]
disallow_any_generics = true
disallow_untyped_defs = true
Expand Down
Loading