Skip to content

Commit e1aaddf

Browse files
authored
Merge pull request #67 from Pebaz/nimporter-v2.0.0rc
Nimporter v2.0.0rc
2 parents 47dd85f + bd26ac5 commit e1aaddf

File tree

140 files changed

+2104
-8919
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+2104
-8919
lines changed

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
omit =
33
tests/*
4-
nimporter_cli.py
4+
nimporter/cli.py
55
setup.py
66
conftest.py

.github/ISSUE_TEMPLATE/bug_report.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
**Software Versions**
27+
- Python
28+
- Nim
29+
- C Compiler
30+
- Operating System
31+
- CPU Architecture
32+
33+
**Nimporter Debug Output**
34+
35+
Define `NIMPORTER_INSTRUMENT` in the environment and post the output below:
36+
37+
```
38+
...
39+
```
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
12+
A clear and concise description of what the problem is. Ex. I'm always
13+
frustrated when [...]
14+
15+
**Describe the solution you'd like**
16+
17+
A clear and concise description of what you want to happen.
18+
19+
**Describe alternatives you've considered**
20+
21+
A clear and concise description of any alternative solutions or features you've considered.
22+
23+
**Additional context**
24+
25+
Add any other context or screenshots about the feature request here.

.github/workflows/dev_workflow.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88

99
jobs:
1010

11-
# ----------------------------------------------------------------------------
11+
# ---------------------------------------------------------------------------
1212
test-all:
1313
runs-on: ${{ matrix.os }}
1414

1515
strategy:
16-
fail-fast: false
16+
fail-fast: false # <- Core value-add. See what platforms fail and why
1717
matrix:
18+
# os: [windows-latest, macos-latest, ubuntu-latest]
19+
# python-version: ['3.10', 3.9, 3.8, 3.7]
20+
# nim-version: [ '1.4.0', 'stable', 'devel' ]
1821
os: [windows-latest, macos-latest, ubuntu-latest]
19-
python-version: ['3.10', 3.9, 3.8, 3.7, 3.6]
20-
nim-version: [ '1.4.0', 'stable', 'devel' ]
22+
python-version: ['3.10']
23+
nim-version: ['1.4.0']
2124

2225
steps:
2326
- uses: actions/checkout@v2
@@ -39,4 +42,6 @@ jobs:
3942
python -m pip install -r requirements_dev.txt
4043
4144
- name: Test
42-
run: pytest --cov=. tests
45+
run: pytest --cov=. -s tests
46+
env:
47+
NIMPORTER_INSTRUMENT: 1

.github/workflows/main.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [windows-latest, macos-latest, ubuntu-latest]
16-
python-version: ['3.10', 3.9, 3.8, 3.7, 3.6]
16+
python-version: ['3.10', 3.9, 3.8, 3.7]
1717

1818
steps:
1919
- uses: actions/checkout@v2
@@ -31,8 +31,10 @@ jobs:
3131
run: |
3232
python -m pip install --upgrade pip
3333
python -m pip install setuptools wheel
34-
python -m pip install git+https://github.com/Pebaz/nimporter
34+
python -m pip install .
3535
python -m pip install -r requirements_dev.txt
3636
3737
- name: Test
38-
run: pytest --cov=. tests
38+
run: pytest --cov=. -s tests
39+
env:
40+
NIMPORTER_INSTRUMENT: 1

.github/workflows/semgrep.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Semgrep
2+
3+
on:
4+
# Scan changed files in PRs, block on new issues only (existing issues ignored)
5+
pull_request: {}
6+
push:
7+
branches: [ switch-the-switches ]
8+
9+
# Scan all files on branches, block on any issues
10+
# push:
11+
# branches: ["master", "main"]
12+
13+
jobs:
14+
semgrep:
15+
name: Scan
16+
runs-on: ubuntu-latest
17+
18+
# Skip any PR created by dependabot to avoid permission issues
19+
if: (github.actor != 'dependabot[bot]')
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: returntocorp/semgrep-action@v1
23+
with:
24+
config: >-
25+
p/security-audit
26+
p/secrets
27+
# # Upload findings to GitHub Advanced Security Dashboard [step 1/2]
28+
generateSarif: "1"
29+
30+
# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
31+
- name: Upload SARIF file for GitHub Advanced Security Dashboard
32+
uses: github/codeql-action/upload-sarif@v1
33+
with:
34+
sarif_file: semgrep.sarif
35+
if: always()

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Nimporter
2+
nim-extensions/
3+
4+
# VS Code
5+
.vscode/
6+
17
# MacOS
28
*.DS_STORE
39

.tokeignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github/
2+
misc/
3+
tests/
4+
conftest.py
5+
setup.py

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

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

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

0 commit comments

Comments
 (0)