Skip to content

Commit

Permalink
Remove syntax as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Oct 16, 2024
1 parent 3672c6a commit fb14dba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 53 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Calendar Versioning](https://calver.org).

## [24.5] - 2024-10-16

### Removed

Syntax optional dependency. It's causing issues with newer Python versions.

## [24.4] - 2024-10-16

### Fixed
Expand Down
72 changes: 20 additions & 52 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ description = 'Inspect and run Django Commands in a text-based user interface (T
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = [
"django",
"tui",
"textual"
]
authors = [
{ name = "Anže Pečar", email = "anze@pecar.me" },
]
keywords = ["django", "tui", "textual"]
authors = [{ name = "Anže Pečar", email = "anze@pecar.me" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
Expand All @@ -35,11 +29,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"django>=3.2",
"textual[syntax]>=0.64.0",
"trogon",
]
dependencies = ["django>=3.2", "textual>=0.64.0", "trogon"]

[project.urls]
Documentation = "https://github.com/anze3db/django-tui#readme"
Expand All @@ -53,46 +43,24 @@ Twitter = "https://twitter.com/anze3db"
path = "src/django_tui/__about__.py"

[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
]
dependencies = ["coverage[toml]>=6.5", "pytest"]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
cov-report = ["- coverage combine", "coverage report"]
cov = ["test-cov", "cov-report"]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.lint]
detached = true
dependencies = [
"mypy>=1.0.0",
"ruff>=0.1.6",
]
dependencies = ["mypy>=1.0.0", "ruff>=0.1.6"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/django_tui tests}"
style = [
"ruff {args:.}",
"ruff format --check {args:.}",
]
fmt = [
"ruff format {args:.}",
"ruff --fix {args:.}",
"style",
]
all = [
"style",
"typing",
]
style = ["ruff {args:.}", "ruff format --check {args:.}"]
fmt = ["ruff format {args:.}", "ruff --fix {args:.}", "style"]
all = ["style", "typing"]

[tool.ruff]
target-version = "py38"
Expand Down Expand Up @@ -130,9 +98,15 @@ ignore = [
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105", "S106", "S107",
"S105",
"S106",
"S107",
# Ignore complexity
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
"C901",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
]
unfixable = [
# Don't touch unused imports
Expand All @@ -153,17 +127,11 @@ ban-relative-imports = "all"
source_pkgs = ["django_tui", "tests"]
branch = true
parallel = true
omit = [
"src/django_tui/__about__.py",
]
omit = ["src/django_tui/__about__.py"]

[tool.coverage.paths]
django_tui = ["src/django_tui", "*/django-tui/src/django_tui"]
tests = ["tests", "*/django-tui/tests"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
2 changes: 1 addition & 1 deletion src/django_tui/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present Anže Pečar <anze@pecar.me>
#
# SPDX-License-Identifier: MIT
__version__ = "24.4"
__version__ = "24.5"

0 comments on commit fb14dba

Please sign in to comment.