Skip to content

Commit 8c293a4

Browse files
authored
Merge pull request #741 from aliparlakci/development
2 parents 1dc5ead + 0846aed commit 8c293a4

88 files changed

Lines changed: 1112 additions & 630 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: formatting_check
2+
run-name: Check code formatting
3+
on: [push, pull_request]
4+
jobs:
5+
formatting_check:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Install dependencies
9+
run: sudo gem install mdl
10+
- uses: actions/checkout@v3
11+
- uses: paolorechia/pox@v1.0.1
12+
with:
13+
tox_env: "format_check"

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.9'
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install setuptools wheel twine
22+
pip install build setuptools wheel twine
2323
- name: Build and publish
2424
env:
2525
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2626
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2727
run: |
28-
python setup.py sdist bdist_wheel
28+
python -m build
2929
twine upload dist/*
30-
31-
- name: Upload coverage report
32-
uses: actions/upload-artifact@v2
30+
31+
- name: Upload dist folder
32+
uses: actions/upload-artifact@v3
3333
with:
3434
name: dist
3535
path: dist/

.github/workflows/test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ name: Python Test
33
on:
44
push:
55
branches: [ master, development ]
6+
paths-ignore:
7+
- "**.md"
8+
- ".markdown_style.rb"
9+
- ".mdlrc"
610
pull_request:
711
branches: [ master, development ]
12+
paths-ignore:
13+
- "**.md"
14+
- ".markdown_style.rb"
15+
- ".mdlrc"
816

917
jobs:
1018
test:
@@ -19,16 +27,16 @@ jobs:
1927
python-version: 3.9
2028
ext: .ps1
2129
steps:
22-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
2331
- name: Setup Python
24-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v4
2533
with:
2634
python-version: ${{ matrix.python-version }}
2735

2836
- name: Install dependencies
2937
run: |
30-
python -m pip install --upgrade pip flake8 pytest pytest-cov
31-
pip install -r requirements.txt
38+
python -m pip install --upgrade pip Flake8-pyproject pytest pytest-cov
39+
pip install .
3240
3341
- name: Make configuration for tests
3442
env:
@@ -38,14 +46,14 @@ jobs:
3846
3947
- name: Lint with flake8
4048
run: |
41-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
49+
flake8 . --select=E9,F63,F7,F82
4250
4351
- name: Test with pytest
4452
run: |
4553
pytest -m 'not slow' --verbose --cov=./bdfr/ --cov-report term:skip-covered --cov-report html
46-
54+
4755
- name: Upload coverage report
48-
uses: actions/upload-artifact@v2
56+
uses: actions/upload-artifact@v3
4957
with:
5058
name: coverage_report
5159
path: htmlcov/

.markdown_style.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
all
2+
exclude_tag :line_length
3+
rule 'MD007', :indent => 4
4+
rule 'MD029', :style => 'ordered'

.mdlrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style "#{File.dirname(__FILE__)}/.markdown_style.rb"

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
repos:
5+
- repo: https://github.com/psf/black
6+
rev: 22.12.0
7+
hooks:
8+
- id: black
9+
10+
- repo: https://github.com/pycqa/isort
11+
rev: 5.11.4
12+
hooks:
13+
- id: isort
14+
name: isort (python)
15+
16+
- repo: https://github.com/pycqa/flake8
17+
rev: 6.0.0
18+
hooks:
19+
- id: flake8
20+
additional_dependencies: [Flake8-pyproject]
21+
22+
- repo: https://github.com/markdownlint/markdownlint
23+
rev: v0.12.0
24+
hooks:
25+
- id: markdownlint

0 commit comments

Comments
 (0)