Skip to content

Commit c0dad2e

Browse files
committed
Repo maintenance
* Bumped GitHub action versions * Converted remaining CRLF line endings to LF * Added pycodestyle config file * Added .editorconfig file
1 parent 529df48 commit c0dad2e

File tree

6 files changed

+38
-11
lines changed

6 files changed

+38
-11
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
8+
[*.py]
9+
indent_style = space
10+
indent_size = 4

.github/workflows/pycodestyle.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@ on:
77
pull_request:
88
paths:
99
- '**.py'
10+
workflow_dispatch:
1011

1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
16-
python-version: ["3.10"]
17+
python-version: ["3.9", "3.10", "3.11"]
1718
steps:
18-
- uses: actions/checkout@v2
19+
- name: Check out repository
20+
uses: actions/checkout@v3
21+
1922
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2124
with:
2225
python-version: ${{ matrix.python-version }}
26+
2327
- name: Install dependencies
2428
run: |
2529
python -m pip install --upgrade pip
2630
pip install pycodestyle
31+
2732
- name: Analysing the code with pycodestyle
2833
run: |
29-
pycodestyle ./*.py --max-line-length=100
34+
pycodestyle ./*.py

.github/workflows/pylint.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@ on:
77
pull_request:
88
paths:
99
- '**.py'
10+
workflow_dispatch:
1011

1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
16-
python-version: ["3.6", "3.8", "3.9", "3.10"]
17+
python-version: ["3.9", "3.10", "3.11"]
1718
steps:
18-
- uses: actions/checkout@v2
19+
- name: Check out repository
20+
uses: actions/checkout@v3
21+
1922
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2124
with:
2225
python-version: ${{ matrix.python-version }}
26+
2327
- name: Install pylint and dependencies
2428
run: |
2529
python -m pip install --upgrade pip
2630
pip install pylint
31+
2732
- name: Analysing the code with pylint
2833
run: |
2934
pylint ./*.py

.github/workflows/python_unittests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ on:
77
pull_request:
88
paths:
99
- '**.py'
10+
workflow_dispatch:
1011

1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
16-
python-version: ["3.10"]
17+
python-version: ["3.9", "3.10", "3.11"]
1718
steps:
18-
- uses: actions/checkout@v2
19+
- name: Check out repository
20+
uses: actions/checkout@v3
21+
1922
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2124
with:
2225
python-version: ${{ matrix.python-version }}
26+
2327
- name: Python unit tests
2428
run: |
2529
python3 tests/unittests.py

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ Thresholds:
5959

6060

6161
## Contributing
62-
* You're welcome to open issues or pull requests
62+
* You're welcome to open issues or pull requests
63+

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pycodestyle]
2+
max-line-length=120

0 commit comments

Comments
 (0)