generated from potassco/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from krr-up/hannes
Preparation for Beta Release 0.1
- Loading branch information
Showing
103 changed files
with
3,139 additions
and
1,134 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.4 | ||
rev: v2.3.0 | ||
hooks: | ||
- id: autoflake | ||
args: ["--in-place", "--imports=clingexplaid", "--ignore-init-module-imports", "--remove-unused-variables"] | ||
exclude: ^.github/ | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
exclude: ^.github/ | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
exclude: ^.github/ | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 24.2.0 | ||
hooks: | ||
- id: black | ||
exclude: ^.github/ | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.17 | ||
hooks: | ||
- id: mdformat | ||
args: ["--wrap", "79"] | ||
exclude: ^doc/ | ||
additional_dependencies: | ||
- mdformat-gfm |
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,5 @@ | ||
# Changes | ||
|
||
## v0.1.0 | ||
|
||
- create project |
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,31 @@ | ||
# Contributing | ||
|
||
Thanks for considering a contribution to clingexplaid. ❤️ | ||
|
||
## How to get help or discuss possible contributions | ||
|
||
To avoid duplicating issues, please search our [issue tracker][issues] and our | ||
[mailing list][mailing_list] before filing a new issue. | ||
|
||
- Open an [issue][new_issue] describing your problem. | ||
- [Subscribe] to our mailing list on SourceForge. | ||
|
||
## How to make a contribution | ||
|
||
- Fork the [clingexplaid][project_url] repository and create a branch for your | ||
changes. | ||
- Submit a pull request to the master branch with your changes. | ||
- Respond to feedback on your pull request. | ||
- If everything is fine your pull request is merged. 🥳 | ||
|
||
## License | ||
|
||
When contributing to this project, you agree that you have authored 100% of the | ||
content, that you have the necessary rights to the content and that the content | ||
you contribute may be provided under the project license. | ||
|
||
[issues]: https://github.com/krr-up/clingo-explaidissues/ | ||
[mailing_list]: https://sourceforge.net/p/potassco/mailman/potassco-users/ | ||
[new_issue]: https://github.com/krr-up/clingo-explaidissues/new/ | ||
[project_url]: https://github.com/krr-up/clingo-explaid | ||
[subscribe]: https://sourceforge.net/projects/potassco/lists/potassco-users/ |
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,15 @@ | ||
# Deployment | ||
|
||
Releases are deployed on [pypi] whenever a tag of form `vMajor.Minor.Revision` | ||
is pushed. Furthermore, the deployment workflow can be triggered manually to | ||
deploy test releases on [test.pypi]. | ||
|
||
For this to work, the workflow has to be granted permission to deploy on the | ||
two services. Please follow this packaging [guide] to setup your accounts | ||
accordingly. We also recommend to setup a github [environment] to restrict | ||
which contributors can deploy packages. | ||
|
||
[environment]: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment/ | ||
[guide]: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
[pypi]: https://pypi.org/ | ||
[test.pypi]: https://test.pypi.org/ |
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,41 @@ | ||
# Development | ||
|
||
To improve code quality, we use [nox] to run linters, type checkers, unit | ||
tests, documentation and more. We recommend installing nox using [pipx] to have | ||
it available globally. | ||
|
||
```bash | ||
# install | ||
python -m pip install pipx | ||
python -m pipx install nox | ||
|
||
# run all sessions | ||
nox | ||
|
||
# list all sessions | ||
nox -l | ||
|
||
# run individual session | ||
nox -s session_name | ||
|
||
# run individual session (reuse install) | ||
nox -Rs session_name | ||
``` | ||
|
||
Note that the nox sessions create [editable] installs. In case there are | ||
issues, try recreating environments by dropping the `-R` option. If your | ||
project is incompatible with editable installs, adjust the `noxfile.py` to | ||
disable them. | ||
|
||
We also provide a [pre-commit][pre] config to autoformat code upon commits. It | ||
can be set up using the following commands: | ||
|
||
```bash | ||
python -m pipx install pre-commit | ||
pre-commit install | ||
``` | ||
|
||
[editable]: https://setuptools.pypa.io/en/latest/userguide/development_mode.html | ||
[nox]: https://nox.thea.codes/en/stable/index.html | ||
[pipx]: https://pypa.github.io/pipx/ | ||
[pre]: https://pre-commit.com/ |
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
Oops, something went wrong.