summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-09-02Bump python from 3.11.4-alpine to 3.11.5-alpine (#525)HEADmaindependabot[bot]
Bumps python from 3.11.4-alpine to 3.11.5-alpine. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-02Bump click from 8.1.6 to 8.1.7 in /gitlint-core (#524)dependabot[bot]
Bumps [click](https://github.com/pallets/click) from 8.1.6 to 8.1.7. - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/click/compare/8.1.6...8.1.7) --- updated-dependencies: - dependency-name: click dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-02Docs: fix contrib-title-conventional-commits example (#526)Kaio Giurizatto Utsch
Fix typo in contrib-title-conventional-commits rule example.
2023-07-21Bump click from 8.1.3 to 8.1.6 in /gitlint-core (#522)dependabot[bot]
Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.6. - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/8.1.6/CHANGES.rst) - [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.6) --- updated-dependencies: - dependency-name: click dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-14Bump actions/setup-python from 4.6.1 to 4.7.0 (#520)dependabot[bot]
2023-07-12README UpdateJoris Roovers
This is a commit to try out bypassing branch protection rules. Relates to #467
2023-07-10Devcontainer tweaks (#518)Joris Roovers
Various cleanup and minor tweaks to the devcontainer.
2023-07-05Default to general.regex-style-search=True (#517)Joris Roovers
This will make all rules use re.search() by default. It's still possible to manually reverse this behavior by setting: general.regex-style-search=False Relates to #254
2023-07-03Implement missing repr methods (#516)Joris Roovers
Implement missing `__repr__` methods where it makes sense. Not required for dataclasses as they have them already implemented. Not required for a few classes with only static methods. This closes #321
2023-06-23GHA: Guard notify job from direct pushes to main (#515)Joris Roovers
When directly pushing to main, don't try to post a comment on the releated PR (as no such PR will exist).
2023-06-23GHA: Notify - extract PR number when merging on main (#511)Joris Roovers
When using github.rest.issues.createComment, context.issue.number does not work when the notify job is triggered by a push to the 'main' branch event. Instead, we manually extract the PR number using the gh CLI.
2023-06-23GHA: Comment dev build numbers on PR after merge (#510)Joris Roovers
Use GHA to leave a comment with on a PR after its merged with a link to the corresponding dev build on PyPI and instructions on how to install it.
2023-06-22GHA: Smoke test sdist package for downstream packaging (#509)Joris Roovers
Smoke test sdist tarballs (gitlint and gitlint-core) for downstream packaging: - Upload and re-downloading them in a separate job - Extract the tarballs and rebuild wheels using pypa/build - Install the wheels - Run gitlint to ensure everything its not failing Closes #468
2023-06-19Docs: Support for git archive installs (#508)Joris Roovers
Explains to how install gitlint using github archive URLs. Docs for #464
2023-06-15Additional type annotations for functions (#507)Joris Roovers
Adds a few more type annotations to functions, a lot more to go.
2023-06-15Remove outdated run_tests.bat (#506)Joris Roovers
Unit and integration tests now run on Windows using hatch, removing the need for this batch file.
2023-06-08GHA: Fixes for publish-docs workflow (#505)Joris Roovers
- Adds git user.name and user.email config required for mike to push to the gh-pages branch. - Checkout gh-pages branch - Dynamic run name
2023-06-08Upgrade Hatch to 1.7.0 (#504)Joris Roovers
Upgrade hatch: 1.6.3 -> 1.7.0
2023-06-08GHA: Improvements for auto-deploy docs (#503)Joris Roovers
- Change incorrect --deploy parameter to --push - Allow for manual trigger of workflow - Call publish-docs workflow from ci workflow when committing on main
2023-06-08GHA: auto-publish dev docs on commit to main (#501)Joris Roovers
Use GHA to automatically publish docs to the dev version when merged to main.
2023-06-08Bump python from 3.11.3-alpine to 3.11.4-alpine (#502)dependabot[bot]
Bumps python from 3.11.3-alpine to 3.11.4-alpine. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02tools/create-test-repo.sh: use subshell (#500)Joris Roovers
tools/create-test-repo.sh will now enter a subshell immediately inside the temporary git repo directory, and reconfigure hatch to be able to run from that that directory. This avoids developers having to manually type the cd command to enter the correct temp repo after creation and having to reconfigure hatch.
2023-06-02Bump actions/setup-python from 4.6.0 to 4.6.1 (#498)dependabot[bot]
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.6.0 to 4.6.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4.6.0...v4.6.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02CI: Docs validate (#497)Joris Roovers
New `docs:validate` hatch script: - Check whether the docs build correctly - Validate external URLs in docs using linkchecker. Runs on every commit in CI.
2023-05-15Mike for docs versioning (#496)Joris Roovers
Using mike together with Material for Mkdocs to manage multiple versions of the docs.
2023-05-11Update badges in README (#494)Joris Roovers
Use table format, distinguish between Package and Development, add few new badges.
2023-05-11Remove looking for contributors message in README (#495)Joris Roovers
Maintenance is under control, we can put this message back in the future if required.
2023-05-10Update all URLs to point to new docs (#493)Joris Roovers
- Replace old URLs with new doc URLs in code, README, CHANGELOG. Critical old URLs, for example those printed by gitlint itself in the past, will keep working and redirect to the new URL. - Ensure all links are https (no http) - Fix incorrect top-level doc URL path for user defined rules (rename getting_started.md to index.md). - Replace few accidental uses of jorisroovers.com/gitlint with jorisroovers.github.io/gitlint - Re-enable strict mode in mkdocs
2023-05-10Docs: enable toc extension (#492)Joris Roovers
Adds an anchor link at the end of each headline.
2023-05-09Material for Mkdocs (#489)Joris Roovers
- Switches mkdocs theme from read-the-docs to Material for Mkdocs - Review and rewrite of all documentation pages
2023-05-02Fix msg-filename kept open after edition (#491)Joris Roovers
--msg-filename type is now a Path and not a managed click.File. This makes it easier to control the opening and closing of the file. Context manager will make sure that the file we use will be refreshed after edition. Co-authored-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
2023-04-21Bump actions/setup-python from 4.5.0 to 4.6.0 (#490)dependabot[bot]
2023-04-14Docs: Termynal demo (#488)Joris Roovers
Replaces ASCII Cinema demo with Termynal, allowing mocking the demo rather than use a CLI recording which is error prone, slow and difficult to edit and maintain.
2023-04-13GHA: Use GHA environments to select PyPI target (#487)Joris Roovers
Replace if statements with ${{ vars.PYPI_TARGET }}, defined in GHA environments, to select the target PyPI repository when publishing packages. Relates to #467 Implements #466
2023-04-11GHA: Use PyPI OIDC for publishing (#486)Joris Roovers
Replace token based authentication with OIDC for PyPI package publishing. Relates to #467
2023-04-11Static type checking using mypy (#482)Joris Roovers
- Adds mypy for type checking, runs in CI on every commit. - Configures mypy for gitlint (excludes, ignores, tuned strictness) - Fixes several typing issues - Updates contributing docs with how to use mypy
2023-04-07Bump python from 3.11.2-alpine to 3.11.3-alpine (#485)dependabot[bot]
2023-04-06Docs: info on testing different python versions (#484)Joris Roovers
The docs were missing important steps on how to test gitlint against different python versions on the dev container. Also fixes the Devcontainer's postCreateCommand.sh to install hatch using pip instead of homebrew.
2023-04-05Remove unused class variable (#481)Joris Roovers
Remove the unused `Rule._log_deprecated_regex_style_search` class variable.
2023-04-04Dataclasses (#479)Joris Roovers
Converts existing classes to dataclasses where applicable. Relates to #321
2023-04-04Hatch autofix script: always run black (#480)Joris Roovers
Before this patch, we didn't run black as part of autofix if `ruff --fix` returned an error. This patch ensures the exit status of `ruff --fix` is ignored and black always runs.
2023-03-28Remove GITLINT_USE_SH_LIB debug logging (#477)Joris Roovers
With the removal of the `sh` libary from gitlint, the GITLINT_USE_SH_LIB environment variable is no longer meaningful and neither has logging its value.
2023-03-28Switch hatch-vcs version scheme to release-branch-semver (#478)Joris Roovers
- Correctly increase dev versions when micro tag versions are present - Removes the need to maintain dev tags Relates to #456
2023-03-28📦 Enable support for git archive installs (#470)Sviatoslav Sydorenko
This patch enables the end-users to succeed installing from GitHub source Git archive URLs, letting `setuptools-scm` calculate the distribution version correctly, including the exports of non-tagged commits [[1]]. `setuptools-scm` is the underlying library that `hatch-vcs` wraps which is why the configuration pre-requisites and runtime assumptions are inherited. Resolves #464. [1]: https://github.com/pypa/setuptools_scm#git-archives
2023-03-28Remove sh library (#476)Joris Roovers
Removes the dependency on the `sh` library, which has been disabled and deprecated since 0.18.0.
2023-03-27Publish to (Test)PyPI @ GHA using `pypi-publish` (#471)Sviatoslav Sydorenko
This patch switches away from using `hatch publish` to the PyPA GitHub action that performs distribution publishing using Twine. Resolves: #465. Co-authored-by: Joris Roovers <joris.roovers@gmail.com>
2023-03-21GHA: Docker Test workflow improvements (#475)Joris Roovers
- Fixes and tweaks for the test-docker workflow - Adds extra docker_image_tag parameter to publish-release workflow. Before this was hardcoded to "latest_dev" which didn't work for publishing an non-pre release. - Triggers the test-docker workflow at the end of the publish-docker workflow to do a quick smoke test on newly published docker images
2023-03-21GHA: Test Docker workflow (#473)Joris Roovers
Allows for post-release testing of docker images.
2023-03-100.19.1 release (#469)v0.19.1Joris Roovers
- Fix issue that prevented homebrew packages from being built (#460) - Switch to using pypa/build in CI (#463) Full Release details in CHANGELOG.md.
2023-03-10🧪🔧 Switch to using `pypa/build` in CI (#463)Sviatoslav Sydorenko
This patch switches the CI/CD workflows to use the PyPA-endorsed PEP 517 build front-end called `build`. It is called without `--sdist` and `--wheel` CLI options, in which case `build` creates an sdist from the Git checkout but the following wheel build is made from that sdist tarball as opposed to using the Git checkout. This has a side effect of smoke-testing that it's possible to build wheels from the published sdists. And this is the flow that `pip install` follows when it's requested to install from an sdist. Ref: https://github.com/jorisroovers/gitlint/issues/460#issuecomment-1462121899