Skip to content

Commit 7a12d2c

Browse files
committed
Merged devel branch (2bee3b9) into this branch. Fixed some type annotations and added comments. Fixed issues that came forward when running tox. Updated pickle files due to renaming of custompairs.py.
2 parents 988148d + 2bee3b9 commit 7a12d2c

File tree

138 files changed

+5386
-199969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+5386
-199969
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ insert_final_newline = true
1010
trim_trailing_whitespace = true
1111
max_line_length = 88
1212

13-
[*.{json,yml}]
13+
[*.{json,yml,yaml}]
1414
indent_size = 2
1515

1616
[*.{md,rst}]

.github/CONTRIBUTING.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ Ready to contribute? Here's how to set up cobrapy for local development.
105105
106106
tox --parallel
107107
108+
We also provide some `git pre-commit hooks <https://pre-commit.com/>`_ for
109+
your convenience. They run our linting steps and will ensure that your
110+
contributions pass linting with every commit that you make. When you want to
111+
use them, run the following commands.
112+
113+
.. code-block:: console
114+
115+
pip install pre-commit
116+
pre-commit install
108117
109118
7. Push your branch to GitHub.
110119

.github/ISSUE_TEMPLATE/01-bug-report.md

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: 🐞 Bug report
2+
description: Report a problem to help improve this project
3+
title: "[BUG] "
4+
labels: [bug, triage]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Is there an existing issue for this?
9+
description: Please search to see if an [issue already exists](https://github.com/opencobra/cobrapy/issues) for the bug you encountered.
10+
options:
11+
- label: I have searched the existing issues
12+
required: true
13+
- type: textarea
14+
attributes:
15+
label: Problem description
16+
description: |
17+
A concise description of what you're experiencing.
18+
19+
Please explain:
20+
21+
* **what** you tried to achieve,
22+
* **how** you went about it (referring to the code sample), and
23+
* **why** the current behaviour is a problem and what output you expected instead.
24+
validations:
25+
required: false
26+
- type: textarea
27+
attributes:
28+
label: Code sample
29+
description: >
30+
Create a [minimal, complete, verifiable example](https://stackoverflow.com/help/mcve).
31+
Please, paste your code between the ``` tickmarks below or link to a [gist](https://gist.github.com/).
32+
value: |
33+
Code run:
34+
35+
```python
36+
```
37+
38+
Traceback:
39+
40+
```text
41+
```
42+
validations:
43+
required: false
44+
- type: textarea
45+
attributes:
46+
label: Environment
47+
description: >
48+
Please paste the output of running `depinfo --markdown cobra`
49+
in your environment between the `details` tags below.
50+
value: |
51+
<details>
52+
53+
</details>
54+
validations:
55+
required: true
56+
- type: textarea
57+
attributes:
58+
label: Anything else?
59+
description: |
60+
Links? References? Anything that will give us more context about the issue you are encountering!
61+
62+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
63+
validations:
64+
required: false
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
name: Feature request
3+
description: Suggest an idea for this project
4+
title: "[Feature] "
5+
labels: [enhancement]
6+
body:
7+
- type: checkboxes
8+
attributes:
9+
label: Checklist
10+
description: >
11+
Please make sure you check all these items before submitting your feature request.
12+
options:
13+
- label: There are [no similar issues or pull requests](https://github.com/opencobra/cobrapy/issues) for this yet.
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Problem
18+
description: >
19+
A clear and concise description of what you are trying to achieve.
20+
placeholder: >
21+
"I want to be able to [...] but I can't because [...]".
22+
validations:
23+
required: false
24+
- type: textarea
25+
attributes:
26+
label: Solution
27+
description: >
28+
A clear and concise description of what you would want to happen.
29+
For API changes, try to provide a code snippet of what you would like the new API to look like.
30+
validations:
31+
required: false
32+
- type: textarea
33+
attributes:
34+
label: Alternatives
35+
description: >
36+
Please describe any alternative solutions or features you've considered to solve
37+
your problem and why they didn't help.
38+
validations:
39+
required: false
40+
- type: textarea
41+
attributes:
42+
label: Anything else?
43+
description: >
44+
Provide any additional context, screenshots, tracebacks, etc. about the feature here.
45+
validations:
46+
required: false

.github/ISSUE_TEMPLATE/02-question.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/03-feature-request.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
22
blank_issues_enabled: true
33
contact_links:
4-
- name: 📧 Google Group
5-
url: http://groups.google.com/group/cobra-pie
4+
- name: Question
5+
url: https://github.com/opencobra/cobrapy/discussions
66
about: >
7-
Please ask typical questions here: General constraint-based modelling problems or
8-
issues with genome-scale models in COBRApy.
7+
Please ask general questions about constraint-based modeling or COBRApy specifically here.
98
- name: 💬 Gitter
109
url: https://gitter.im/opencobra/cobrapy
1110
about: >

.github/workflows/biosimulators_dispatch.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Get tag
13-
id: tag
14-
run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
1512
- name: Dispatch new release version to BioSimulators
1613
uses: benc-uk/workflow-dispatch@v1
1714
with:
1815
workflow: Continuous integration
1916
repo: biosimulators/Biosimulators_COBRApy
2017
ref: dev
2118
token: ${{ secrets.BIOSIM_DISPATCH_TOKEN }}
22-
inputs: '{ "simulatorVersion": "${{ steps.tag.outputs.version }}", "simulatorVersionLatest": "true" }'
19+
inputs: '{ "simulatorVersion": "${{ github.ref_name }}", "simulatorVersionLatest": "true" }'

.github/workflows/cron.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Cron Test
2+
3+
on:
4+
schedule:
5+
# Run every Tuesday at 10:30.
6+
- cron: '30 10 * * 2'
7+
8+
jobs:
9+
prerequisites:
10+
uses: ./.github/workflows/test.yml
11+

.github/workflows/lint.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)