Package Details: gitlint 0.19.1-3

Git Clone URL: https://aur.archlinux.org/gitlint.git (read-only, click to copy)
Package Base: gitlint
Description: Git commit message linter
Upstream URL: https://github.com/jorisroovers/gitlint
Licenses: MIT
Submitter: atweiden
Maintainer: bunder (carsme)
Last Packager: carsme
Votes: 6
Popularity: 0.086314
First Submitted: 2015-12-23 18:28 (UTC)
Last Updated: 2024-04-22 17:54 (UTC)

Pinned Comments

carsme commented on 2023-07-25 06:39 (UTC)

Updating to version 0.17.0-6 requires manual intervention - gitlint must be explicitly uninstalled and installed from scratch. Updating in-place from 0.17.0-5 to 0.17.0-6 causes a conflict for the completion files.

Latest Comments

1 2 Next › Last »

meyznu commented on 2024-06-02 03:04 (UTC)

It spews out about 57k lines of errors and miserably fails to install. The tail:

FAILED gitlint/__init__.py::mypy-status
FAILED gitlint/tests/cli/test_cli_hooks.py::ruff::format - pytest_ruff.RuffEr...
FAILED gitlint/contrib/rules/conventional_commit.py::ruff - pytest_ruff.RuffE...
FAILED gitlint/tests/base.py::ruff - pytest_ruff.RuffError: gitlint/tests/bas...
FAILED gitlint/hooks.py::ruff::format - pytest_ruff.RuffError: File would be ...
FAILED gitlint/tests/config/test_config_builder.py::ruff::format - pytest_ruf...
FAILED gitlint/rule_finder.py::ruff::format - pytest_ruff.RuffError: File wou...
FAILED gitlint/contrib/rules/authors_commit.py::ruff::format - pytest_ruff.Ru...
FAILED gitlint/config.py::ruff::format - pytest_ruff.RuffError: File would be...
FAILED gitlint/git.py::ruff::format - pytest_ruff.RuffError: File would be re...
FAILED gitlint/shell.py::ruff - pytest_ruff.RuffError: gitlint/shell.py:14:32...
FAILED gitlint/deprecation.py::ruff - pytest_ruff.RuffError: gitlint/deprecat...
FAILED gitlint/tests/git/test_git_commit.py::ruff - pytest_ruff.RuffError: gi...
FAILED gitlint/tests/git/test_git.py::ruff::format - pytest_ruff.RuffError: F...
FAILED gitlint/tests/git/test_git_context.py::ruff - pytest_ruff.RuffError: g...
FAILED gitlint/contrib/rules/conventional_commit.py::ruff::format - pytest_ru...
FAILED gitlint/lint.py::ruff::format - pytest_ruff.RuffError: File would be r...
FAILED gitlint/tests/rules/test_body_rules.py::ruff::format - pytest_ruff.Ruf...
FAILED gitlint/tests/contrib/rules/test_conventional_commit.py::ruff::format
FAILED gitlint/tests/base.py::ruff::format - pytest_ruff.RuffError: File woul...
FAILED gitlint/tests/git/test_git.py::ruff - pytest_ruff.RuffError: gitlint/t...
FAILED gitlint/tests/contrib/rules/test_signedoff_by.py::ruff::format - pytes...
FAILED gitlint/tests/samples/user_rules/import_exception/invalid_python.py::mypy
FAILED gitlint/rules.py::ruff - pytest_ruff.RuffError: gitlint/rules.py:13:20...
FAILED gitlint/display.py::ruff - pytest_ruff.RuffError: gitlint/display.py:1...
FAILED gitlint/tests/git/test_git_commit.py::ruff::format - pytest_ruff.RuffE...
FAILED gitlint/tests/contrib/rules/test_authors_commit.py::ruff::format - pyt...
FAILED gitlint/tests/git/test_git_context.py::ruff::format - pytest_ruff.Ruff...
FAILED gitlint/shell.py::ruff::format - pytest_ruff.RuffError: File would be ...
FAILED gitlint/tests/rules/test_rules.py::ruff::format - pytest_ruff.RuffErro...
FAILED gitlint/tests/cli/test_cli.py::ruff - pytest_ruff.RuffError: gitlint/t...
FAILED gitlint/tests/contrib/rules/test_disallow_cleanup_commits.py::ruff::format
FAILED gitlint/tests/rules/test_title_rules.py::ruff::format - pytest_ruff.Ru...
FAILED gitlint/tests/samples/user_rules/my_commit_rules.py::ruff - pytest_ruf...
FAILED gitlint/tests/rules/test_user_rules.py::ruff::format - pytest_ruff.Ruf...
FAILED gitlint/tests/rules/test_configuration_rules.py::ruff::format - pytest...
FAILED gitlint/tests/samples/user_rules/parent_package/__init__.py::ruff - py...
FAILED gitlint/tests/cli/test_cli.py::ruff::format - pytest_ruff.RuffError: F...
FAILED gitlint/tests/samples/user_rules/parent_package/my_commit_rules.py::ruff
FAILED gitlint/tests/test_hooks.py::ruff::format - pytest_ruff.RuffError: Fil...
FAILED gitlint/tests/rules/test_meta_rules.py::ruff::format - pytest_ruff.Ruf...
FAILED gitlint/tests/samples/user_rules/my_commit_rules.py::ruff::format - py...
FAILED gitlint/tests/test_options.py::ruff::format - pytest_ruff.RuffError: F...
FAILED gitlint/utils.py::ruff::format - pytest_ruff.RuffError: File would be ...
FAILED gitlint/tests/test_deprecation.py::ruff::format - pytest_ruff.RuffErro...
FAILED gitlint/tests/test_lint.py::ruff::format - pytest_ruff.RuffError: File...
======================== 54 failed, 385 passed in 3.62s ========================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: gitlint-exit status 4
checking dependencies...

Packages (5) python-editables-0.5-3  python-pathspec-0.12.1-2  python-setuptools-scm-8.1.0-1  python-hatch-vcs-0.4.0-3  python-hatchling-1.24.2-1

Total Removed Size:  1.70 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing python-hatch-vcs...
removing python-setuptools-scm...
removing python-hatchling...
removing python-pathspec...
removing python-editables...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
 -> Failed to install the following packages. Manual intervention is required:
gitlint - exit status 4

yorickpeterse commented on 2024-01-29 13:59 (UTC)

When updating, the following errors are displayed:

==> Starting check()...
================================================================== test session starts ==================================================================
platform linux -- Python 3.11.6, pytest-8.0.0, pluggy-1.4.0
rootdir: /var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core
collected 0 items / 27 errors

======================================================================== ERRORS =========================================================================
____________________________________________________ ERROR collecting gitlint/tests/cli/test_cli.py _____________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli.py:11: in <module>
    from gitlint.tests.base import BaseTestCase
E   ModuleNotFoundError: No module named 'gitlint.tests'
_________________________________________________ ERROR collecting gitlint/tests/cli/test_cli_hooks.py __________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli_hooks.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli_hooks.py:8: in <module>
    from gitlint.tests.base import BaseTestCase
E   ModuleNotFoundError: No module named 'gitlint.tests'

To fix this I had to remove the check function.

carsme commented on 2023-07-25 06:39 (UTC)

Updating to version 0.17.0-6 requires manual intervention - gitlint must be explicitly uninstalled and installed from scratch. Updating in-place from 0.17.0-5 to 0.17.0-6 causes a conflict for the completion files.

carsme commented on 2022-11-07 18:00 (UTC)

Thanks for reporting, @yorickpeterse. Should be fixed now.

yorickpeterse commented on 2022-11-07 17:31 (UTC) (edited on 2022-11-07 17:32 (UTC) by yorickpeterse)

This package isn't installing the completions correctly: they are placed in both root (/) and the completion directories, but the ones in the root directory are never removed.

I'm guessing the .install file runs with / as the working directory, and it never seems to remove the temporary files. Probably it needs to do this instead:

post_install() {
  _GITLINT_COMPLETE=bash_source gitlint > gitlint.bash
  _GITLINT_COMPLETE=fish_source gitlint > gitlint.fish
  _GITLINT_COMPLETE=zsh_source gitlint > gitlint.zsh

  install -Dm644 gitlint.bash "/usr/share/bash-completion/completions/gitlint"
  install -Dm644 gitlint.fish "/usr/share/fish/vendor_completions.d/gitlint.fish"
  install -Dm644 gitlint.zsh "/usr/share/zsh/site-functions/_gitlint"

  rm gitlint.bash
  rm gitlint.fish
  rm gitlint.zsh
}

post_upgrade() {
  _GITLINT_COMPLETE=bash_source gitlint > gitlint.bash
  _GITLINT_COMPLETE=fish_source gitlint > gitlint.fish
  _GITLINT_COMPLETE=zsh_source gitlint > gitlint.zsh

  install -Dm644 gitlint.bash "/usr/share/bash-completion/completions/gitlint"
  install -Dm644 gitlint.fish "/usr/share/fish/vendor_completions.d/gitlint.fish"
  install -Dm644 gitlint.zsh "/usr/share/zsh/site-functions/_gitlint"

  rm gitlint.bash
  rm gitlint.fish
  rm gitlint.zsh
}

post_remove() {
  rm "/usr/share/bash-completion/completions/gitlint"
  rm "/usr/share/fish/vendor_completions.d/gitlint.fish"
  rm "/usr/share/zsh/site-functions/_gitlint"
}

bvtthead commented on 2022-10-31 13:36 (UTC)

'git' needs to be added to the checkdepends array

carsme commented on 2022-10-18 19:12 (UTC)

@Freed, completions should be included now.

Freed commented on 2022-10-13 09:39 (UTC)

gitlint has its shell completions (bash/zsh/fish). Please add them.

See https://github.com/jorisroovers/gitlint/issues/344

Thanks.

carsme commented on 2022-01-05 01:09 (UTC)

@bunder thanks!

bunder commented on 2022-01-04 01:46 (UTC)

@carsme, I've added you to comaintainers.