Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,38 @@ updates:
schedule:
interval: weekly

groups:
# Group updates into fewer pull requests
gh-security-updates:
applies-to: security-updates
patterns:
- "*"

gh-version-updates:
applies-to: version-updates
patterns:
- "*"

# Enable Security updates for Python package manager
- package-ecosystem: pip

# When set to 0, version updates are disabled.
open-pull-requests-limit: 10

# Look for a `pyproject.toml`/`requirements.txt/`pipfile.lock` in the `root` directory
# Look for a pyproject.toml/requirements.txt/Pipfile.lock in the root directory
directory: /
# Every weekday
schedule:
interval: daily

groups:
# Group updates into fewer pull requests
py-security-updates:
applies-to: security-updates
patterns:
- "*"

py-version-updates:
applies-to: version-updates
patterns:
- "*"
3 changes: 1 addition & 2 deletions .github/linters/.markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "ons-python-template/generate",
"reason": "Generate links require authentication"
"pattern": "ons-python-template/generate"
}
],
"retryOn429": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ MD032: true
# https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md033.md
MD033:
# Allowed elements
allowed_elements: []
allowed_elements: ["details", "summary"]

# MD034/no-bare-urls
# Bare URL used
Expand Down
20 changes: 20 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
changelog:
categories:
- title: ⚠️ Breaking Changes
labels:
- Breaking Change
- title: New Features
labels:
- New Feature
- title: Enhancements
labels:
- Enhancement
- title: Bug Fixes
labels:
- Bug Fix
- title: Documentation
labels:
- Documentation
- title: Other Changes
labels:
- "*"
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: false
run: pipx install poetry==1.7.1

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -35,8 +31,7 @@ jobs:
cache: poetry

- name: Install dependencies
run: |
make install-dev
run: make install-dev

- name: Lint Python
run: make lint
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/rename-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ jobs:

- name: Install Poetry
if: env.is_template == 'false' && env.needs_renaming == 'true'
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: false
run: pipx install poetry==1.7.1

- name: Set up Python
if: env.is_template == 'false' && env.needs_renaming == 'true'
Expand Down Expand Up @@ -98,7 +94,7 @@ jobs:
--data "repository_description=${{ env.REPOSITORY_DESCRIPTION || env.REPOSITORY_NAME }}" \
--data "repository_owner=${{ env.REPOSITORY_OWNER }}" \
--data "repository_visibility=${{ env.REPOSITORY_VISIBILITY }}" \
--data "is_running_in_github_actions=true"
--data "is_gh_actions=true"

# Remove existing files and directories from the current directory including hidden files
shopt -s dotglob
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,8 @@ cython_debug/
# Ruff
.ruff_cache/

# Megalinter
megalinter-reports/

# DS_Store files
.DS_Store
2 changes: 2 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ FILEIO_REPORTER: false

# Use yml file to allow the use of comments. Megalinter's default is .markdown-lint.json
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml

YAML_V8R_FILTER_REGEX_EXCLUDE: "dependabot.yml" # Dependabot yaml in SchemaStore is currently not up to date. Dependabot is validated on push by GitHub by default.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ megalint: ## Run the mega-linter.
-v $(shell pwd):/tmp/lint:rw \
oxsecurity/megalinter:v7

.PHONY: update-template-packages
update-template-packages: ## Update the project using the initial copier template.
cd scripts/package_manager_helper && ./update_template_packages.sh && cd ../..

.PHONY: clean
clean: ## Clean the temporary files.
rm -rf megalinter-reports
Loading