Skip to content

Commit eff50da

Browse files
committed
Modernize codebase
1 parent 47d455e commit eff50da

File tree

172 files changed

+10620
-404
lines changed

Some content is hidden

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

172 files changed

+10620
-404
lines changed

.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503, E211, E731
3+
max-line-length = 88
4+
select = B,C,E,F,W,T4,B9

.github/workflows/ci-tests.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
concurrency:
10+
group: build-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014

1115
tox:
@@ -16,9 +20,8 @@ jobs:
1620
strategy:
1721
matrix:
1822
py-ver-major: [3]
19-
py-ver-minor: [6, 7, 8, 9, 10]
20-
step: [unit]
21-
# step: [lint, unit, mypy]
23+
py-ver-minor: [7, 8, 9, 10]
24+
step: [lint, unit, mypy]
2225

2326
env:
2427
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}
@@ -55,7 +58,7 @@ jobs:
5558

5659
- name: Upload coverage to Codecov
5760
if: ${{ matrix.step == 'unit' }}
58-
uses: codecov/codecov-action@v1
61+
uses: codecov/codecov-action@v2.1.0
5962
with:
6063
fail_ci_if_error: true
6164

@@ -66,12 +69,12 @@ jobs:
6669

6770
strategy:
6871
matrix:
69-
step: [lint-readme]
72+
step: [pydocstyle]
7073
# step: [lint-readme, pydocstyle]
7174

7275
env:
73-
py-semver: 3.9
74-
TOXENV: ${{ format('py39-{0}', matrix.step) }}
76+
py-semver: "3.10"
77+
TOXENV: ${{ format('py310-{0}', matrix.step) }}
7578

7679
steps:
7780
- uses: actions/checkout@v2

.github/workflows/codeql-analysis.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,31 @@ name: "Code scanning - action"
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
7+
branches: [main]
68
schedule:
79
- cron: '0 20 * * 5'
810

11+
concurrency:
12+
group: codeql-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
915
jobs:
1016
CodeQL-Build:
1117

1218
runs-on: ubuntu-latest
1319

20+
permissions:
21+
security-events: write
22+
1423
steps:
1524
- name: Checkout repository
1625
uses: actions/checkout@v2
1726
with:
1827
# We must fetch at least the immediate parents so that if this is
1928
# a pull request then we can checkout the head.
2029
fetch-depth: 2
21-
22-
# If this run was triggered by a pull request event, then checkout
23-
# the head of the pull request instead of the merge commit.
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
2630

2731
# Initializes the CodeQL tools for scanning.
2832
- name: Initialize CodeQL

.isort.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
multi_line_output=3
3+
include_trailing_comma=True
4+
force_grid_wrap=0
5+
use_parentheses=True
6+
line_length=88

0 commit comments

Comments
 (0)