Skip to content

Commit e0b1ae1

Browse files
minor file renaming
1 parent 8653c59 commit e0b1ae1

File tree

88 files changed

+7855
-1
lines changed

Some content is hidden

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

88 files changed

+7855
-1
lines changed

.codecov.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
comment:
2+
layout: "reach, diff, flags, files"
3+
behavior: default
4+
require_changes: false # if true: only post the comment if coverage changes
5+
require_base: no # [yes :: must have a base report to post]
6+
require_head: yes # [yes :: must have a head report to post]
7+
8+
coverage:
9+
status:
10+
project:
11+
default:
12+
threshold: 1

.coveragerc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[run]
2+
source = pydriller
3+
4+
[report]
5+
exclude_lines =
6+
if self.debug:
7+
pragma: no cover
8+
raise NotImplementedError
9+
if __name__ == .__main__.:
10+
exclude_also =
11+
@(abc\.)?abstractmethod
12+
ignore_errors = True
13+
include = */pydriller/*
14+
omit =
15+
tests/*
16+
*/__init__.py/*

.flake8

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
show-source = True
3+
count = True
4+
statistics = True
5+
max-line-length = 150
6+
exclude = .github,venv,build,dist,docs,test-repos,.venv,tmp.py

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: ishepard

.github/ISSUE_TEMPLATE/bug_report.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 bug. For example, a specific commit in a repository, and/or a modification.
15+
16+
**OS Version:**
17+
Windows/MacOS/Linux
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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. Example: I often have the problem of [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Additional context**
17+
Add any other information or screenshots about the feature request here.

.github/workflows/codeql.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
schedule:
9+
- cron: "0 17 * * 1"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ python ]
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
queries: +security-and-quality
34+
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v2
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v2
40+
with:
41+
category: "/language:${{ matrix.language }}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Pydriller workflow
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macOS-latest, windows-latest]
14+
python: [ '3.8.x', '3.9.x', '3.10.x', '3.11.x', '3.12.x' ]
15+
name: Python ${{ matrix.python }} sample on ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Install python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python }}
22+
- name: Install dependencies and unzip test-repos
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install -r test-requirements.txt
27+
pip install pytest-cov
28+
unzip test-repos
29+
- name: Mypy
30+
run: |
31+
pip install mypy
32+
mypy --ignore-missing-imports pydriller/ tests/
33+
- name: Lint with flake8
34+
run: |
35+
pip install flake8
36+
flake8
37+
- name: Run pytest
38+
run: pytest --junitxml=testpulse/test_run/test_results.xml --cov-report xml:testpulse/test_run/coverage.xml --cov=pydriller tests/
39+
- name: Upload coverage to Codecov
40+
uses: codecov/codecov-action@v4
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
file: coverage.xml
44+
- name: Upload to testpulse
45+
if: '!cancelled()'
46+
env:
47+
TESTPULSE_TOKEN: ${{ secrets.TESTPULSE_TOKEN }}
48+
run: |
49+
pip install testpulse-uploader
50+
testpulse-upload -tr ".*testpulse\/test_run\/.*\.xml" -tr ".*testpulse\\test_run\\.*\.xml" --config-file .testpulse.yaml -lv ${{ matrix.python }} -tt unit

.github/workflows/publish.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
on:
3+
push:
4+
tags:
5+
- 2*
6+
7+
jobs:
8+
publish:
9+
name: "Build, test and upload to pypi"
10+
runs-on: "ubuntu-latest"
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/project/PyDriller/
14+
permissions:
15+
id-token: write
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Install python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.11'
23+
- name: Install dependencies and unzip test-repos
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install -r test-requirements.txt
28+
pip install pytest-cov
29+
unzip test-repos
30+
- name: Mypy
31+
run: |
32+
pip install mypy
33+
mypy --ignore-missing-imports pydriller/ tests/
34+
- name: Lint with flake8
35+
run: |
36+
pip install flake8
37+
flake8
38+
- name: Run pytest
39+
run: pytest tests/ --cov=pydriller/ --cov-report=xml
40+
- name: Build app
41+
run: |
42+
pip install wheel
43+
python setup.py bdist_wheel
44+
- name: Publish distribution 📦 to PyPI
45+
if: startsWith(github.ref, 'refs/tags')
46+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)