Skip to content

Commit 608c467

Browse files
committed
Initial commit
0 parents  commit 608c467

File tree

9 files changed

+989
-0
lines changed

9 files changed

+989
-0
lines changed
Lines changed: 20 additions & 0 deletions
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/ISSUE_TEMPLATE/requests.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Requests
3+
about: Suggest an idea for any improvments
4+
title: This is requests for information.
5+
labels: help wanted
6+
assignees: ''
7+
8+
---
9+
10+
Im learning git, and trying alot, sometimes sitting houers failing trying to create workflows. Because i dont know enought about yalm files and node.js for example but reading up on it.
11+
12+
If you have any suggestions on what i should do involving all subjects, security, command line, pushing projects, creating respitory to use and how to use command line to work from.
13+
14+
I am reading up on all information i can find. Its alot, like Nutget etc also is new to me so its alot to learn wich is good but can be frustrating.
15+
16+
This is only information for my profile.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '42 16 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ csharp ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1
68+
version: 2
69+
updates:
70+
- package-ecosystem: "github-actions"
71+
directory: "/"
72+
schedule:
73+
interval: "daily"
74+
75+
- package-ecosystem: "npm"
76+
directory: "/app"
77+
schedule:
78+
interval: "daily"
79+
day: "sunday"
80+
time: "09:00"
81+
timezone: "Europe/Stockholm"
82+
versioning-strategy: widen
83+
rebase-strategy: "disabled"
84+
open-pull-requests-limit: 0
85+
milestone: 4
86+
labels:
87+
- "npm"
88+
- "dependencies"
89+
ignore:
90+
dependency-name: "express"
91+
versions: ["4.x", "5.x"]
92+
commit-message:
93+
prefix: "npm"
94+
95+
- package-ecosystem: "composer"
96+
allow:
97+
dependency-type: "all"
98+
include: "scope"
99+
100+
- package-ecosystem: "pip"
101+
directory: "/"
102+
schedule:
103+
interval: "daily"
104+
allow:
105+
dependency-name: "django*"
106+
dependency-type: "direct"
107+
- "production"
108+
versioning-strategy: lockfile-only
109+
target-branch: "develop"
110+
labels:
111+
- "pip dependencies"
112+
reviewers:
113+
- "octocat"
114+
- "my-username"
115+
- "my-org/python-team"
116+
open-pull-requests-limit: 10
117+
commit-message:
118+
prefix: "pip prod"
119+
prefix-development: "pip dev"
120+
include: "scope"
121+
122+
- package-ecosystem: "gomod"
123+
vendor: true
124+
directory: "/"
125+
schedule:
126+
interval: "weekly"

.github/workflows/py.test

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
Tests:
5+
strategy:
6+
fail-fast: false
7+
max-parallel: 15
8+
matrix:
9+
node: [10.x, 12.x, 14.x]
10+
python: [3.6, 3.8, 3.9]
11+
os: [macos-latest, ubuntu-latest, windows-latest]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- name: Use Python ${{ matrix.python }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python }}
24+
env:
25+
PYTHON_VERSION: ${{ matrix.python }}
26+
- name: Install Dependencies
27+
run: |
28+
npm install --no-progress
29+
pip install flake8 pytest
30+
- name: Set Windows environment
31+
if: matrix.os == 'windows-latest'
32+
run: |
33+
echo 'GYP_MSVS_VERSION=2015' >> $Env:GITHUB_ENV
34+
echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV
35+
- name: Lint Python
36+
if: matrix.os == 'ubuntu-latest'
37+
run: |
38+
# stop the build if there are Python syntax errors or undefined names
39+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
41+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42+
- name: Run Python tests
43+
run: |
44+
python -m pytest
45+
# - name: Run doctests with pytest
46+
# run: python -m pytest --doctest-modules
47+
- name: Run Node tests
48+
run: |
49+
npm test

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at . All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
All help is welcome.
2+
Im new to github so be simple.
3+
Need tips on command line.
4+
Any necissary info about git and github will be much appreciated!

0 commit comments

Comments
 (0)