Skip to content

Commit

Permalink
Modernize codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Mar 4, 2022
1 parent 47d455e commit 9006466
Show file tree
Hide file tree
Showing 172 changed files with 10,547 additions and 352 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E203, E266, E501, W503, E211, E731
max-line-length = 88
select = B,C,E,F,W,T4,B9
16 changes: 10 additions & 6 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

tox:
Expand All @@ -16,8 +20,8 @@ jobs:
strategy:
matrix:
py-ver-major: [3]
py-ver-minor: [6, 7, 8, 9, 10]
step: [unit]
py-ver-minor: [7, 8, 9, 10]
step: [unit, mypy]
# step: [lint, unit, mypy]

env:
Expand Down Expand Up @@ -55,7 +59,7 @@ jobs:

- name: Upload coverage to Codecov
if: ${{ matrix.step == 'unit' }}
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2.1.0
with:
fail_ci_if_error: true

Expand All @@ -66,12 +70,12 @@ jobs:

strategy:
matrix:
step: [lint-readme]
step: [pydocstyle]
# step: [lint-readme, pydocstyle]

env:
py-semver: 3.9
TOXENV: ${{ format('py39-{0}', matrix.step) }}
py-semver: "3.10"
TOXENV: ${{ format('py310-{0}', matrix.step) }}

steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@ name: "Code scanning - action"

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 20 * * 5'

concurrency:
group: codeql-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
CodeQL-Build:

runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 6 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[settings]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
Loading

0 comments on commit 9006466

Please sign in to comment.