Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX!: switch to Ruff as linter #7

Merged
merged 12 commits into from
Jul 9, 2023
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
146 changes: 74 additions & 72 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,76 @@
{
"version": "0.2",
"ignorePaths": [
"**/.cspell.json",
"*.bib",
"*.ico",
"*.root",
"*.rst_t",
"*.svg",
"*particle*.*ml",
".constraints/*.txt",
".flake8*",
".gitignore",
".gitpod.*",
".mypy.ini",
".pre-commit-config.yaml",
".pydocstyle*",
".pylintrc",
".readthedocs.yml",
".vscode/*",
".vscode/.gitignore",
".zenodo.json",
"codecov.yml",
"Dockerfile",
"docs/_templates/*",
"docs/adr/*/*",
"docs/conf.py",
"labels.toml",
"Makefile",
"pyproject.toml",
"pyrightconfig.json",
"pytest.ini",
"requirements*.txt",
"setup.cfg",
"setup.py",
"tox.ini",
"typings"
],
"dictionaryDefinitions": [],
"dictionaries": [],
"words": [
"Conda",
"isort",
"mypy",
"pylint",
"pypi",
"pyright",
"pytest"
],
"ignoreWords": [
"codecov",
"redeboer",
"venv"
],
"import": [],
"enableFiletypes": [
"git-commit",
"jupyter"
],
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"language": "en-US"
"version": "0.2",
"ignorePaths": [
"**/.cspell.json",
"*.bib",
"*.ico",
"*.root",
"*.rst_t",
"*.svg",
"*particle*.*ml",
".constraints/*.txt",
".editorconfig",
".gitignore",
".gitpod.*",
".mypy.ini",
".pre-commit-config.yaml",
".prettierignore",
".readthedocs.yml",
".vscode/*",
".vscode/.gitignore",
".zenodo.json",
"codecov.yml",
"Dockerfile",
"docs/_templates/*",
"docs/adr/*/*",
"docs/conf.py",
"labels.toml",
"Makefile",
"Manifest.toml",
"Project.toml",
"pyproject.toml",
"pyrightconfig.json",
"pytest.ini",
"requirements*.txt",
"setup.cfg",
"setup.py",
"tox.ini",
"typings"
],
"dictionaryDefinitions": [],
"dictionaries": [],
"words": [
"Conda",
"isort",
"mypy",
"piptools",
"pylint",
"pypi",
"pyright",
"pytest"
],
"ignoreWords": [
"MAINT",
"PYTHONHASHSEED",
"codecov",
"commitlint",
"prereleased",
"redeboer",
"venv"
],
"enableFiletypes": ["git-commit", "julia", "jupyter"],
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"language": "en-US"
}
49 changes: 0 additions & 49 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Bug resulted on the following system:

- OS: <!-- e.g. macOS, WSL Ubuntu, ...-->
- Version <!-- e.g. 10.15, 20.04, ... -->
- Python version: <!-- e.g. 3.6, 3.7, ... -->
- Python version: <!-- e.g. 3.7, 3.8, ... -->
- Virtual environment: <!-- e.g. venv, Conda, pip user install, ... -->
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for this project
title: ""
labels: "💡 Enhancement"
labels: " Enhancement"
assignees: ""
---

Expand Down
10 changes: 8 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- Fixes #xxx -->

<!-- For the PR title, follow a conventional commit message style: https://compwa-org.readthedocs.io/en/stable/develop.html#commit-conventions -->
<!--
For the PR title, follow a conventional commit message style:
https://compwa-org.readthedocs.io/en/stable/develop.html#commit-conventions
-->

<!-- Contents of this PR appear in the release notes. Please use screenshots, code snippets etc. to illustrate proposed changes -->
<!--
Contents of this PR appear in the release notes. Please use screenshots, code snippets
etc. to illustrate proposed changes
-->
34 changes: 16 additions & 18 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
name-template: Repo Maintenance $NEXT_PATCH_VERSION
name-template: update-pip-constraints $NEXT_PATCH_VERSION
tag-template: $NEXT_PATCH_VERSION

references:
- main
- epic/*

categories:
- title: 💡 New features
label: 💡 Feature
- title: ⚠️ Interface
- title: ✨ New features
label: ✨ Feature
- title: ⚠️ Enhancements and optimizations
label: ⚙️ Enhancement
- title: ⚠️ API changes
label: ⚠️ Interface
- title: ⚠️ Changes that may affect behavior
label: ❗ Behavior
- title: 🐛 Bug fixes
label: Bug
- title: 🔨 Internal maintenance
label: 🔨 Maintenance
label: 🐛 Bug
- title: 📝 Documentation
label: 📝 Docs
- title: 🔨 Maintenance
label: 🔨 Maintenance
- title: 🖱️ Developer Experience
label: 🖱️ DX

change-template: |
<details>
<summary>$TITLE (#$NUMBER)</summary>

$BODY

</details>
change-template: "- $TITLE (#$NUMBER)"

replacers:
- search: /<summary>([a-z]+!?:\s*)(.*)</summary>/g
replace: <summary>$2</summary>
- search: /([A-Z]+!?:\s*)(.*)/g
replace: $2

sort-direction: ascending

template: |
# Release $NEXT_PATCH_VERSION

$CHANGES

_The full changelog as commits can be found [here](https://github.com/ComPWA/update-pip-constraints/compare/$PREVIOUS_TAG...$NEXT_PATCH_VERSION)._
16 changes: 16 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CD

on:
release:
types:
- prereleased
- released

jobs:
milestone:
if: startsWith(github.ref, 'refs/tags')
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v1
push:
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
secrets: inherit
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v1
38 changes: 0 additions & 38 deletions .github/workflows/ci-style.yml

This file was deleted.

Loading