Skip to content

Commit 9f1f80f

Browse files
fix broken links and doc
1 parent 053d92a commit 9f1f80f

18 files changed

+198
-233
lines changed

.github/CONTRIBUTING.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Thanks for considering contributing! Please read this document to learn the vari
66

77
### Did you find a bug?
88

9-
First, do [a quick search](https://github.com/cheshire-cat-ai/ccat-api-py/issues) to see whether your issue has already been reported.
9+
First, do [a quick search](https://github.com/cheshire-cat-ai/cheshire-cat-api/issues) to see whether your issue has already been reported.
1010
If your issue has already been reported, please comment on the existing issue.
1111

12-
Otherwise, open [a new GitHub issue](https://github.com/cheshire-cat-ai/ccat-api-py/issues). Be sure to include a clear title
12+
Otherwise, open [a new GitHub issue](https://github.com/cheshire-cat-ai/cheshire-cat-api/issues). Be sure to include a clear title
1313
and description. The description should include as much relevant information as possible. The description should
1414
explain how to reproduce the erroneous behavior as well as the behavior you expect to see. Ideally you would include a
1515
code sample or an executable test case demonstrating the expected behavior.
@@ -21,7 +21,7 @@ We use GitHub issues to track feature requests. Before you create a feature requ
2121
* Make sure you have a clear idea of the enhancement you would like. If you have a vague idea, consider discussing
2222
it first on a GitHub issue.
2323
* Check the documentation to make sure your feature does not already exist.
24-
* Do [a quick search](https://github.com/cheshire-cat-ai/ccat-api-py/issues) to see whether your feature has already been suggested.
24+
* Do [a quick search](https://github.com/cheshire-cat-ai/cheshire-cat-api/issues) to see whether your feature has already been suggested.
2525

2626
When creating your request, please:
2727

@@ -41,31 +41,31 @@ When you're ready to contribute code to address an open issue, please follow the
4141

4242
Then clone your fork locally with
4343

44-
git clone https://github.com/USERNAME/ccat-api-py.git
44+
git clone https://github.com/USERNAME/cheshire-cat-api.git
4545

4646
or
4747

48-
git clone git@github.com:USERNAME/ccat-api-py.git
48+
git clone git@github.com:USERNAME/cheshire-cat-api.git
4949

50-
At this point the local clone of your fork only knows that it came from *your* repo, github.com/USERNAME/ccat-api-py.git, but doesn't know anything the *main* repo, [https://github.com/cheshire-cat-ai/ccat-api-py.git](https://github.com/cheshire-cat-ai/ccat-api-py). You can see this by running
50+
At this point the local clone of your fork only knows that it came from *your* repo, github.com/USERNAME/cheshire-cat-api.git, but doesn't know anything the *main* repo, [https://github.com/cheshire-cat-ai/cheshire-cat-api.git](https://github.com/cheshire-cat-ai/cheshire-cat-api). You can see this by running
5151

5252
git remote -v
5353

5454
which will output something like this:
5555

56-
origin https://github.com/USERNAME/ccat-api-py.git (fetch)
57-
origin https://github.com/USERNAME/ccat-api-py.git (push)
56+
origin https://github.com/USERNAME/cheshire-cat-api.git (fetch)
57+
origin https://github.com/USERNAME/cheshire-cat-api.git (push)
5858

59-
This means that your local clone can only track changes from your fork, but not from the main repo, and so you won't be able to keep your fork up-to-date with the main repo over time. Therefore you'll need to add another "remote" to your clone that points to [https://github.com/cheshire-cat-ai/ccat-api-py.git](https://github.com/cheshire-cat-ai/ccat-api-py). To do this, run the following:
59+
This means that your local clone can only track changes from your fork, but not from the main repo, and so you won't be able to keep your fork up-to-date with the main repo over time. Therefore you'll need to add another "remote" to your clone that points to [https://github.com/cheshire-cat-ai/cheshire-cat-api.git](https://github.com/cheshire-cat-ai/cheshire-cat-api). To do this, run the following:
6060

61-
git remote add upstream https://github.com/cheshire-cat-ai/ccat-api-py.git
61+
git remote add upstream https://github.com/cheshire-cat-ai/cheshire-cat-api.git
6262

6363
Now if you do `git remote -v` again, you'll see
6464

65-
origin https://github.com/USERNAME/ccat-api-py.git (fetch)
66-
origin https://github.com/USERNAME/ccat-api-py.git (push)
67-
upstream https://github.com/cheshire-cat-ai/ccat-api-py.git (fetch)
68-
upstream https://github.com/cheshire-cat-ai/ccat-api-py.git (push)
65+
origin https://github.com/USERNAME/cheshire-cat-api.git (fetch)
66+
origin https://github.com/USERNAME/cheshire-cat-api.git (push)
67+
upstream https://github.com/cheshire-cat-ai/cheshire-cat-api.git (fetch)
68+
upstream https://github.com/cheshire-cat-ai/cheshire-cat-api.git (push)
6969

7070
Finally, you'll need to create a Python 3 virtual environment suitable for working on this project. There a number of tools out there that making working with virtual environments easier.
7171
The most direct way is with the [`venv` module](https://docs.python.org/3.7/library/venv.html) in the standard library, but if you're new to Python or you don't already have a recent Python 3 version installed on your machine,
@@ -77,7 +77,7 @@ When you're ready to contribute code to address an open issue, please follow the
7777

7878
Then you can create and activate a new Python environment by running:
7979

80-
conda create -n ccat-api python=3.9
80+
conda create -n ccat-api python=3.10
8181
conda activate ccat-api
8282

8383
Once your virtual environment is activated, you can install your local clone in "editable mode" with
@@ -93,7 +93,7 @@ When you're ready to contribute code to address an open issue, please follow the
9393

9494
<details><summary>Expand details 👇</summary><br/>
9595

96-
Once you've added an "upstream" remote pointing to [https://github.com/allenai/python-package-temlate.git](https://github.com/cheshire-cat-ai/ccat-api-py), keeping your fork up-to-date is easy:
96+
Once you've added an "upstream" remote pointing to [this repo](https://github.com/cheshire-cat-ai/cheshire-cat-api), keeping your fork up-to-date is easy:
9797

9898
git checkout main # if not already on main
9999
git pull --rebase upstream main
@@ -119,25 +119,25 @@ When you're ready to contribute code to address an open issue, please follow the
119119

120120
<details><summary>Expand details 👇</summary><br/>
121121

122-
Our continuous integration (CI) testing runs [a number of checks](https://github.com/cheshire-cat-ai/ccat-api-py/actions) for each pull request on [GitHub Actions](https://github.com/features/actions). You can run most of these tests locally, which is something you should do *before* opening a PR to help speed up the review process and make it easier for us.
122+
Our continuous integration (CI) testing runs [a number of checks](https://github.com/cheshire-cat-ai/cheshire-cat-api/actions) for each pull request on [GitHub Actions](https://github.com/features/actions). You can run most of these tests locally, which is something you should do *before* opening a PR to help speed up the review process and make it easier for us.
123123

124-
Our CI also uses [`flake8`](https://github.com/cheshire-cat-ai/ccat-api-py/tree/main/tests) to lint the code base and [`mypy`](http://mypy-lang.org/) for type-checking. You should run both of these next with
124+
Our CI also uses [`flake8`](https://github.com/cheshire-cat-ai/cheshire-cat-api/tree/main/tests) to lint the code base and [`mypy`](http://mypy-lang.org/) for type-checking. You should run both of these next with
125125

126126
flake8 .
127127

128128
and
129129

130130
mypy .
131131

132-
We also strive to maintain high test coverage, so most contributions should include additions to [the unit tests](https://github.com/cheshire-cat-ai/ccat-api-py/tree/main/tests). These tests are run with [`pytest`](https://docs.pytest.org/en/latest/), which you can use to locally run any test modules that you've added or changed.
132+
We also strive to maintain high test coverage, so most contributions should include additions to [the unit tests](https://github.com/cheshire-cat-ai/cheshire-cat-api/tree/main/tests). These tests are run with [`pytest`](https://docs.pytest.org/en/latest/), which you can use to locally run any test modules that you've added or changed.
133133

134-
For example, if you've fixed a bug in `ccat_api/a/b.py`, you can run the tests specific to that module with
134+
For example, if you've fixed a bug in `cheshire-cat-api/a/b.py`, you can run the tests specific to that module with
135135

136136
pytest -v tests/a/b_test.py
137137

138138
To check the code coverage locally in this example, you could run
139139

140-
pytest -v --cov ccat_api.a.b tests/a/b_test.py
140+
pytest -v --cov cheshire-cat-api.a.b tests/a/b_test.py
141141

142142
If your contribution involves additions to any public part of the API, we require that you write docstrings
143143
for each function, method, class, or module that you add.
@@ -148,9 +148,9 @@ When you're ready to contribute code to address an open issue, please follow the
148148

149149
If the build fails, it's most likely due to small formatting issues. If the error message isn't clear, feel free to comment on this in your pull request.
150150

151-
And finally, please update the [CHANGELOG](https://github.com/cheshire-cat-ai/ccat-api-py/blob/main/CHANGELOG.md) with notes on your contribution in the "Unreleased" section at the top.
151+
And finally, please update the [CHANGELOG](https://github.com/cheshire-cat-ai/cheshire-cat-api/blob/main/CHANGELOG.md) with notes on your contribution in the "Unreleased" section at the top.
152152

153-
After all of the above checks have passed, you can now open [a new GitHub pull request](https://github.com/cheshire-cat-ai/ccat-api-py/pulls).
153+
After all of the above checks have passed, you can now open [a new GitHub pull request](https://github.com/cheshire-cat-ai/cheshire-cat-api/pulls).
154154
Make sure you have a clear description of the problem and the solution, and include a link to relevant issues.
155155

156156
We look forward to reviewing your PR!
@@ -159,6 +159,4 @@ When you're ready to contribute code to address an open issue, please follow the
159159

160160
### Writing docstrings
161161

162-
We use [Sphinx](https://www.sphinx-doc.org/en/master/index.html) to build our API docs, which automatically parses all docstrings
163-
of public classes and methods using the [autodoc](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html) extension.
164-
Please refer to autodoc's documentation to learn about the docstring syntax.
162+
TODO

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
- type: markdown
77
attributes:
88
value: >
9-
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/cheshire-cat-ai/ccat-api-py/issues?q=is%3Aissue+sort%3Acreated-desc+).
9+
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/cheshire-cat-ai/cheshire-cat-api/issues?q=is%3Aissue+sort%3Acreated-desc+).
1010
- type: textarea
1111
attributes:
1212
label: 🐛 Describe the bug
@@ -17,7 +17,7 @@ body:
1717
1818
```python
1919
# All necessary imports at the beginning
20-
import ccat_api
20+
import cheshire_cat_api
2121
2222
# A succinct reproducing example trimmed down to the essential parts:
2323
assert False is True, "Oh no!"

.github/ISSUE_TEMPLATE/documentation.yml

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

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Changes proposed in this pull request:
1010
## Before submitting
1111

1212
<!-- Please complete this checklist BEFORE submitting your PR to speed along the review process. -->
13-
- [ ] I've read and followed all steps in the [Making a pull request](https://github.com/cheshire-cat-ai/ccat-api-py/blob/main/.github/CONTRIBUTING.md#making-a-pull-request)
13+
- [ ] I've read and followed all steps in the [Making a pull request](https://github.com/cheshire-cat-ai/cheshire-cat-api/blob/main/.github/CONTRIBUTING.md#making-a-pull-request)
1414
section of the `CONTRIBUTING` docs.
1515
- [ ] I've updated or added any relevant docstrings following the syntax described in the
16-
[Writing docstrings](https://github.com/cheshire-cat-ai/ccat-api-py/blob/main/.github/CONTRIBUTING.md#writing-docstrings) section of the `CONTRIBUTING` docs.
16+
[Writing docstrings](https://github.com/cheshire-cat-ai/cheshire-cat-api/blob/main/.github/CONTRIBUTING.md#writing-docstrings) section of the `CONTRIBUTING` docs.
1717
- [ ] If this PR fixes a bug, I've added a test that will fail without my fix.
1818
- [ ] If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

.github/workflows/python.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: cheshire_cat_api Python package
88
on: [push, pull_request]
99

1010
jobs:
11-
build:
11+
test:
1212

1313
strategy:
1414
matrix:
@@ -37,8 +37,3 @@ jobs:
3737
pytest
3838
3939
40-
- name: Build and publish to pypi
41-
uses: JRubics/poetry-publish@v1.17
42-
with:
43-
pypi_token: ${{ secrets.PYPI_TOKEN }}
44-

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "build and publish"
2+
3+
on: [release]
4+
5+
6+
jobs:
7+
publish:
8+
strategy:
9+
matrix:
10+
python-version: [ "3.10" ]
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Build and publish to pypi
21+
uses: JRubics/poetry-publish@v1.17
22+
with:
23+
pypi_token: ${{ secrets.PYPI_TOKEN }}

CHANGELOG.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10-
## [v0.0.61](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.61) - 2023-07-28
1110

12-
## [v0.0.6](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.6) - 2023-07-28
13-
14-
## [v0.0.65](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.65) - 2023-07-28
15-
16-
## [v0.0.64](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.64) - 2023-07-28
17-
18-
## [v0.0.63](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.63) - 2023-07-28
19-
20-
## [v0.0.62](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.62) - 2023-07-28
21-
22-
## [v0.0.61S](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.61S) - 2023-07-28
23-
24-
## [v0.0.6](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.6) - 2023-07-28
25-
26-
## [v0.0.5](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.5) - 2023-07-28
27-
28-
## [v0.0.4](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.4) - 2023-07-28
29-
30-
## [v0.0.1](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.1) - 2023-07-28
31-
32-
## [v1.0.0](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v1.0.0) - 2023-07-28
33-
34-
## [v0.0.37](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.37) - 2023-07-28
35-
36-
## [v0.0.36](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.36) - 2023-07-28
37-
38-
## [v0.0.35](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.35) - 2023-07-28
39-
40-
## [v0.0.34](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.34) - 2023-07-28
41-
42-
## [v0.0.33](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.33) - 2023-07-28
43-
44-
## [v0.0.32](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.32) - 2023-07-28
45-
46-
## [v0.0.31](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.31) - 2023-07-28
47-
48-
## [v0.0.3](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.3) - 2023-07-28
49-
50-
## [v0.0.1](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.1) - 2023-07-28
51-
52-
## [v0.2.1](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.2.1) - 2023-07-28
53-
54-
## [v0.2.0](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.2.0) - 2023-07-28
55-
56-
## [v0.0.02](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.02) - 2023-07-28
57-
58-
## [v0.0.01](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.0.01) - 2023-07-28
59-
60-
## [v0.1.1](https://github.com/cheshire-cat-ai/ccat-api-py/releases/tag/v0.1.1) - 2023-07-28
6111

6212

0 commit comments

Comments
 (0)