Skip to content

Commit

Permalink
feat: add dependency analysis for automatic version updates (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
behnazh authored Oct 13, 2021
1 parent 0f9c12d commit 12f8eec
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This configuration file enables Dependabot version updates.
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates
# https://github.com/dependabot/feedback/issues/551

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "fix"
prefix-development: "chore"
include: "scope"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "fix"
prefix-development: "chore"
include: "scope"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Documentation is important, and [Sphinx](https://www.sphinx-doc.org/en/master/)

Automatic package versioning and tagging, publishing to [PyPI](https://pypi.org/), and [Changelog](https://en.wikipedia.org/wiki/Changelog) generation are enabled using Github Actions (see [below](#versioning-publishing-and-changelog)).

### Dependency Analysis

[Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates) is enabled to scan the dependencies and automatically create pull requests when an updated version is available.

### Standalone

In addition to being an importable standard Python package, the package is also set up to be used as a runnable and standalone package using Python’s [-m](https://docs.python.org/3/using/cmdline.html#cmdoption-m) command-line option.
Expand Down
4 changes: 2 additions & 2 deletions commitlint.rules.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// See also .github/workflows/pull-request.yml
module.exports = {
rules: {
"subject-case": [2, "always", "sentence-case"],
"subject-max-length": [2, "always", 72],
"subject-max-length": [2, "always", 100],
"body-max-line-length": [2, "always", 200],
},
};

0 comments on commit 12f8eec

Please sign in to comment.