Skip to content

Commit

Permalink
Merge pull request #67 from Pebaz/nimporter-v2.0.0rc
Browse files Browse the repository at this point in the history
Nimporter v2.0.0rc
  • Loading branch information
Pebaz committed Mar 26, 2022
2 parents 47dd85f + bd26ac5 commit e1aaddf
Show file tree
Hide file tree
Showing 140 changed files with 2,104 additions and 8,919 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[run]
omit =
tests/*
nimporter_cli.py
nimporter/cli.py
setup.py
conftest.py
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Software Versions**
- Python
- Nim
- C Compiler
- Operating System
- CPU Architecture

**Nimporter Debug Output**

Define `NIMPORTER_INSTRUMENT` in the environment and post the output below:

```
...
```
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**

A clear and concise description of what the problem is. Ex. I'm always
frustrated when [...]

**Describe the solution you'd like**

A clear and concise description of what you want to happen.

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**

Add any other context or screenshots about the feature request here.
15 changes: 10 additions & 5 deletions .github/workflows/dev_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ on:

jobs:

# ----------------------------------------------------------------------------
# ---------------------------------------------------------------------------
test-all:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
fail-fast: false # <- Core value-add. See what platforms fail and why
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
# python-version: ['3.10', 3.9, 3.8, 3.7]
# nim-version: [ '1.4.0', 'stable', 'devel' ]
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ['3.10', 3.9, 3.8, 3.7, 3.6]
nim-version: [ '1.4.0', 'stable', 'devel' ]
python-version: ['3.10']
nim-version: ['1.4.0']

steps:
- uses: actions/checkout@v2
Expand All @@ -39,4 +42,6 @@ jobs:
python -m pip install -r requirements_dev.txt
- name: Test
run: pytest --cov=. tests
run: pytest --cov=. -s tests
env:
NIMPORTER_INSTRUMENT: 1
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ['3.10', 3.9, 3.8, 3.7, 3.6]
python-version: ['3.10', 3.9, 3.8, 3.7]

steps:
- uses: actions/checkout@v2
Expand All @@ -31,8 +31,10 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel
python -m pip install git+https://github.com/Pebaz/nimporter
python -m pip install .
python -m pip install -r requirements_dev.txt
- name: Test
run: pytest --cov=. tests
run: pytest --cov=. -s tests
env:
NIMPORTER_INSTRUMENT: 1
35 changes: 35 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Semgrep

on:
# Scan changed files in PRs, block on new issues only (existing issues ignored)
pull_request: {}
push:
branches: [ switch-the-switches ]

# Scan all files on branches, block on any issues
# push:
# branches: ["master", "main"]

jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest

# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
config: >-
p/security-audit
p/secrets
# # Upload findings to GitHub Advanced Security Dashboard [step 1/2]
generateSarif: "1"

# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: semgrep.sarif
if: always()
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Nimporter
nim-extensions/

# VS Code
.vscode/

# MacOS
*.DS_STORE

Expand Down
5 changes: 5 additions & 0 deletions .tokeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
misc/
tests/
conftest.py
setup.py
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2019 Samuel Wilder, https://github.com/Pebaz
Copyright (c) 2022 Samuel Wilder, https://github.com/Pebaz

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading

0 comments on commit e1aaddf

Please sign in to comment.