Skip to content

Commit a7bc071

Browse files
committed
Add workflows and issue templates
1 parent 3a0c957 commit a7bc071

File tree

4 files changed

+94
-0
lines changed

4 files changed

+94
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Version or commit hash [e.g. 22]
29+
30+
**Additional context**
31+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Pull request
3+
about: Submitting a pull request
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
reviewers: ''
8+
9+
---
10+
11+
- Make sure all tests (including pylint) pass before submitting your pull request.
12+
- Make sure all Github Actions workflows that were passing before your changes are still passing.
13+
- Reference the issue that this pull request is fixing.
14+
- (Optionally) mention any people involved in the discussion of the issue.
15+
- Document how your pull request fixes the issue.
16+
- Document any alternatives you considered and why they were not chosen.
17+
- Document any shortcomings, todos or open-points.

.github/workflows/pylint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pylint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8", "3.9"]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pylint
21+
pip install -r projects/snake/requirements.txt
22+
- name: Analysing the code with pylint
23+
working-directory: projects
24+
run: |
25+
# run pylint on all python files in the projects dir
26+
pylint -d=import-error --fail-under=9.75 $(git ls-files '*.py')

0 commit comments

Comments
 (0)