Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Commits
fce85f21
Commit
fce85f21
authored
1 year ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
contribution guideines
parent
b8b423c5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#58408
passed
1 year ago
Stage: pretest
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CONTRIBUTING.md
+56
-0
56 additions, 0 deletions
CONTRIBUTING.md
README.md
+5
-0
5 additions, 0 deletions
README.md
with
61 additions
and
0 deletions
CONTRIBUTING.md
0 → 100644
+
56
−
0
View file @
fce85f21
# Contributing
## Creating merge requests
Any contributions to this project must happen through GitLab merge requests to the main development
repository (currently
[
i10git.cs.fau.de/da15siwa/pystencils-sfg
](
https://i10git.cs.fau.de/da15siwa/pystencils-sfg
)
).
For a merge request to be accepted, it needs to both pass the continous integration pipeline and be approved by a project maintainer.
## Free Software
This project is free software under the GNU General Public Licence v3.
As such, any submission of contributions via merge requests is considered as agreement to this licence.
## Developing `pystencils-sfg`
### Fork and Clone
To work within the
`pystencils-sfg`
source tree, first create a
*fork*
of this repository on GitLab and create
a local clone of your fork.
### Set up your dev environment
`pystencils-sfg`
uses
[
`pdm`
](
https://pdm-project.org
)
for managing a virtual development environment.
Install
`pdm`
through your system's package manager and run
`pdm sync`
in your cloned project directory.
It will set up a virtual environment in the subfolder
`.venv`
, installing all project dependencies into it.
The
`pystencils-sfg`
package itself is also installed in editable mode.
You can activate the virtual environment using
`eval $(pdm venv activate)`
.
### Code Style and Type Checking
To contribute, please adhere to the Python code style set by
[
PEP 8
](
https://peps.python.org/pep-0008/
)
.
It is recommended that you use the
[
black
](
https://pypi.org/project/black/
)
formatter to format your source files.
Use flake8 (installed in the
`pdm`
virtual environment) to check your code style:
```
shell
pdm run flake8 src/pystencilssfg
# or, if .venv is activated
flake8 src/pystencilssfg
```
Further,
`pystencils-sfg`
takes a rigorous approach to correct static typing.
All submitted code should contain type annotations (
[
PEP 484
](
https://peps.python.org/pep-0484/
)
) and must be
correctly statically typed.
To check types, we use
[
MyPy
](
https://www.mypy-lang.org/
)
, which is automatically installed in the dev environment
and can be invoked as
```
shell
pdm run mypy src/pystencilssfg
# or, if .venv is activated
mypy src/pystencilssfg
```
Both
`flake8`
and
`mypy`
are also run in the integration pipeline.
It is furthermore recommended to run both checkers as a git pre-commit hook.
Such a hook can be installed using the
[
`install_git_hooks.sh`
][
install_git_hooks.sh
]
script located at the project root.
This diff is collapsed.
Click to expand it.
README.md
+
5
−
0
View file @
fce85f21
...
@@ -5,3 +5,8 @@
...
@@ -5,3 +5,8 @@
A bridge over the semantic gap between code emitted by pystencils and your C/C++/Cuda/HIP framework.
A bridge over the semantic gap between code emitted by pystencils and your C/C++/Cuda/HIP framework.
This project is still in an early stage of development.
This project is still in an early stage of development.
## Contribute
Contributions, be they bugfixes, documentation, or entirely new features, are always welcome.
Before submitting your code, please read the
[
contribution guidelines
][
CONTRIBUTING.md
]
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment