# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-python-lsp-ruff
version             2.3.1
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Ruff linting plugin for pylsp
long_description    {*}${description}

homepage            https://github.com/python-lsp/python-lsp-ruff

distname            python_lsp_ruff-${version}

checksums           rmd160  68b5195bcd1fcc8e6f08f7af104116136a9e7893 \
                    sha256  37831ae9bd498214b13ea1e73df7fe5721c7055534c644efbb81c52069e73341 \
                    size    17421

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-cattrs \
                    port:py${python.version}-lsprotocol \
                    port:py${python.version}-python-lsp-server \
                    port:ruff

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-tomli
    }
}
