-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some fixes to errors raised (#94)
* fix: some fixes to errors raised Emits nicer ValueErrors in a couple of instances, instead of mere assertions. Also adds some .github YAML configurations for upcoming changes to CD. * fix: tests that raise a different error now * docs: update readme badges * test: add tests of error corner cases * docs: better python badge
- Loading branch information
1 parent
acfd76b
commit 3987d01
Showing
12 changed files
with
219 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: pip | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: pip | ||
directory: "/docs" | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
versioning-strategy: lockfile-only | ||
allow: | ||
- dependency-type: "all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
# Labels names are important as they are used by Release Drafter to decide | ||
# regarding where to record them in changelog or if to skip them. | ||
# | ||
# The repository labels will be automatically configured using this file and | ||
# the GitHub Action https://github.com/marketplace/actions/github-labeler. | ||
- name: "API breaking" | ||
description: Breaking Changes | ||
color: e305fc | ||
- name: "good first issue" | ||
description: Good for newcomers | ||
color: 7057ff | ||
|
||
- name: "status: duplicate" | ||
description: This issue or pull request already exists | ||
color: d93f0b | ||
- name: "status: invalid" | ||
description: Invalid issue or pull request | ||
color: d93f0b | ||
- name: "status: requires discussion" | ||
description: Issue requires further discussion before implementation | ||
color: f71bd2 | ||
- name: "status: requires research" | ||
description: Issue requires further research before implementation | ||
color: "d93f0b" | ||
- name: "status: wontfix" | ||
description: Valid issue, but out of scope for future fixes | ||
color: "d93f0b" | ||
|
||
- name: "type: maint: dependencies" | ||
description: Pull requests that update a dependency file | ||
color: "0366d6" | ||
- name: "type: maint: documentation" | ||
description: Improvements or additions to documentation | ||
color: "0075ca" | ||
- name: "type: maint: refactoring" | ||
description: Refactoring | ||
color: ef67c4 | ||
- name: "type: maint: removal" | ||
description: Removals and Deprecations | ||
color: 9ae7ea | ||
- name: "type: maint: style" | ||
description: Style | ||
color: c120e5 | ||
- name: "type: maint: build" | ||
description: Build System and Dependencies | ||
color: bfdadc | ||
|
||
- name: "type: accuracy" | ||
description: "Enhancement that improves accuracy" | ||
color: "bfd4f2" | ||
- name: "type: bug" | ||
description: Something isn't working | ||
color: d73a4a | ||
- name: "type: feature: ui" | ||
description: New feature that adds functionality for the user | ||
color: "0e8a16" | ||
- name: "type: feature: physical" | ||
description: New feature that adds new analysis/physical model | ||
color: "0e8a16" | ||
- name: "type: testing" | ||
description: Testing improvements | ||
color: b1fc6f | ||
- name: "type: performance: memory" | ||
description: Performance improvements that reduce memory usage | ||
color: "016175" | ||
- name: "type: performance: cpu" | ||
description: Performance improvements that reduce walltime | ||
color: "016175" | ||
- name: "type: ci" | ||
description: Updates to CI (GH actions, RTD, etc.) | ||
color: "000000" | ||
- name: "type: question" | ||
description: A question about the code or documentation | ||
color: d876e3 | ||
|
||
- name: "priority: low" | ||
description: Low priority | ||
color: "BFD4F2" | ||
- name: "priority: medium" | ||
description: Medium priority | ||
color: "E99695" | ||
- name: "priority: high" | ||
description: High priority | ||
color: "B60205" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# See https://github.com/marketplace/actions/release-drafter for configuration | ||
categories: | ||
- title: ":boom: Breaking Changes" | ||
label: "breaking" | ||
- title: ":rocket: Features" | ||
label: "enhancement" | ||
- title: ":fire: Removals and Deprecations" | ||
label: "removal" | ||
- title: ":beetle: Fixes" | ||
label: "bug" | ||
- title: ":racehorse: Performance" | ||
label: "performance" | ||
- title: ":rotating_light: Testing" | ||
label: "testing" | ||
- title: ":construction_worker: Continuous Integration" | ||
label: "ci" | ||
- title: ":books: Documentation" | ||
label: "documentation" | ||
- title: ":hammer: Refactoring" | ||
label: "refactoring" | ||
- title: ":lipstick: Style" | ||
label: "style" | ||
- title: ":package: Dependencies" | ||
labels: | ||
- "dependencies" | ||
- "build" | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
autolabeler: | ||
- label: 'documentation' | ||
files: | ||
- '*.md' | ||
branch: | ||
- '/.*docs{0,1}.*/' | ||
- label: 'bug' | ||
branch: | ||
- '/fix.*/' | ||
title: | ||
- '/fix/i' | ||
- label: 'enhancement' | ||
branch: | ||
- '/feature.*|add-.+/' | ||
title: | ||
- '/feat:.+|feature:.+/i' | ||
- label: "removal" | ||
title: | ||
- "/remove .*/i" | ||
- label: "performance" | ||
title: | ||
- "/.* performance .*/i" | ||
- label: "ci" | ||
files: | ||
- '.github/*' | ||
- '.pre-commit-config.yaml' | ||
- '.coveragrc' | ||
- label: "style" | ||
files: | ||
- ".flake8" | ||
- label: "refactoring" | ||
title: | ||
- "/.* refactor.*/i" | ||
|
||
template: | | ||
## Changes | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ Bug reports/Feature Requests/Feedback/Questions | |
It is incredibly helpful to us when users report bugs, unexpected behaviour, or request | ||
features. You can do the following: | ||
|
||
* `Report a bug <https://github.com/steven-murray/21cmSense/issues/new?template=bug_report.md>` | ||
* `Request a Feature <https://github.com/steven-murray/21cmSense/issues/new?template=feature_request.md>` | ||
* `Ask a Question <https://github.com/steven-murray/21cmSense/issues/new?template=question.md>` | ||
* `Report a bug <https://github.com/rasg-affiliates/21cmSense/issues/new?template=bug_report.md>` | ||
* `Request a Feature <https://github.com/rasg-affiliates/21cmSense/issues/new?template=feature_request.md>` | ||
* `Ask a Question <https://github.com/rasg-affiliates/21cmSense/issues/new?template=question.md>` | ||
|
||
When doing any of these, please try to be as succinct, but detailed, as possible, and use | ||
a "Minimum Working Example" whenever applicable. | ||
|
@@ -32,7 +32,7 @@ pre-commit hooks will run that enforce the ``black`` coding style. If you do not | |
install these requirements, you must manually run black before committing your changes, | ||
otherwise your changes will likely fail continuous integration. | ||
|
||
1. First fork `21cmSense <https://github.com/steven-murray/21cmSense>`_ | ||
1. First fork `21cmSense <https://github.com/rasg-affiliates/21cmSense>`_ | ||
(look for the "Fork" button), then clone the fork locally:: | ||
|
||
git clone [email protected]:your_name_here/21cmSense.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters