flake8-secure-coding-standard 1.4.0__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flake8_secure_coding_standard-1.5.0/.github/dependabot.yml +13 -0
- flake8_secure_coding_standard-1.5.0/.github/workflows/ci.yml +68 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.github/workflows/codeql-analysis.yml +5 -5
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.github/workflows/draft_release.yml +24 -24
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.github/workflows/format.yml +10 -6
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.github/workflows/publish_release.yml +11 -12
- flake8_secure_coding_standard-1.5.0/.github/workflows/pull_request.yml +61 -0
- flake8_secure_coding_standard-1.5.0/.pre-commit-config.yaml +55 -0
- flake8_secure_coding_standard-1.5.0/CHANGELOG.md +187 -0
- {flake8-secure-coding-standard-1.4.0/flake8_secure_coding_standard.egg-info → flake8_secure_coding_standard-1.5.0}/PKG-INFO +14 -6
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0/flake8_secure_coding_standard.egg-info}/PKG-INFO +14 -6
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/SOURCES.txt +2 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/requires.txt +1 -1
- flake8_secure_coding_standard-1.5.0/flake8_secure_coding_standard.egg-info/scm_file_list.json +42 -0
- flake8_secure_coding_standard-1.5.0/flake8_secure_coding_standard.egg-info/scm_version.json +8 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.py +162 -170
- flake8_secure_coding_standard-1.5.0/pyproject.toml +168 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/setup.cfg +6 -14
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/assert_test.py +7 -6
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/builtin_open_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/eval_exec_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/jsonpickle_decode_test.py +7 -9
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/marshal_load_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/os_chmod_test.py +37 -36
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/os_mkdir_mkfifo_mknod_test.py +26 -30
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/os_open_test.py +30 -33
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/os_realpath_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/pdb_test.py +7 -13
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/pickle_load_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/plugin_options_test.py +19 -17
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/shell_exec_test.py +9 -8
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/shelve_open_test.py +8 -7
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/shlex_quote_test.py +11 -10
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/tempfile_mktemp_test.py +9 -8
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/tests/yaml_load_test.py +8 -7
- flake8-secure-coding-standard-1.4.0/.github/dependabot.yml +0 -12
- flake8-secure-coding-standard-1.4.0/.github/workflows/ci.yml +0 -78
- flake8-secure-coding-standard-1.4.0/.github/workflows/pull_request.yml +0 -19
- flake8-secure-coding-standard-1.4.0/.pre-commit-config.yaml +0 -96
- flake8-secure-coding-standard-1.4.0/CHANGELOG.md +0 -140
- flake8-secure-coding-standard-1.4.0/pyproject.toml +0 -84
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.codespell.allow +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.editorconfig +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.gitignore +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/.yamllint +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/LICENSE +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/MANIFEST.in +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/README.md +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/dependency_links.txt +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/entry_points.txt +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/not-zip-safe +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/flake8_secure_coding_standard.egg-info/top_level.txt +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/misc/license_header.txt +0 -0
- {flake8-secure-coding-standard-1.4.0 → flake8_secure_coding_standard-1.5.0}/setup.py +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: CI
|
|
4
|
+
|
|
5
|
+
on: # yamllint disable-line rule:truthy
|
|
6
|
+
pull_request:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
- develop
|
|
11
|
+
- v*
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
concurrency:
|
|
17
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
18
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
standard:
|
|
22
|
+
strategy:
|
|
23
|
+
fail-fast: false
|
|
24
|
+
matrix:
|
|
25
|
+
runs-on: [ubuntu-latest, windows-latest, macos-latest]
|
|
26
|
+
# NB: always quote the versions, otherwise YAML turns 3.10 into 3.1
|
|
27
|
+
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
|
|
28
|
+
|
|
29
|
+
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }}"
|
|
30
|
+
runs-on: ${{ matrix.runs-on }}
|
|
31
|
+
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v7
|
|
34
|
+
with:
|
|
35
|
+
fetch-depth: 0 # full history and tags for SCM versioning to work
|
|
36
|
+
|
|
37
|
+
- name: Setup Python ${{ matrix.python }}
|
|
38
|
+
uses: actions/setup-python@v7
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.python }}
|
|
41
|
+
cache: 'pip'
|
|
42
|
+
cache-dependency-path: '**/setup.cfg'
|
|
43
|
+
|
|
44
|
+
- name: Setup annotations on Linux
|
|
45
|
+
if: runner.os == 'Linux'
|
|
46
|
+
run: python -m pip install pytest-github-actions-annotate-failures
|
|
47
|
+
|
|
48
|
+
- name: Build and install package
|
|
49
|
+
run: python -m pip install -e .[test]
|
|
50
|
+
|
|
51
|
+
- name: Run tests
|
|
52
|
+
run: python -m pytest -v --cov=flake8_secure_coding_standard --cov-report=term --cov-report=lcov:coverage.lcov
|
|
53
|
+
|
|
54
|
+
- name: Coveralls.io
|
|
55
|
+
uses: coverallsapp/github-action@v2
|
|
56
|
+
with:
|
|
57
|
+
file: coverage.lcov
|
|
58
|
+
flag-name: python-${{ matrix.python }}-${{ matrix.runs-on }}
|
|
59
|
+
parallel: true
|
|
60
|
+
|
|
61
|
+
finish:
|
|
62
|
+
needs: standard
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
steps:
|
|
65
|
+
- name: Coveralls Finished
|
|
66
|
+
uses: coverallsapp/github-action@v2
|
|
67
|
+
with:
|
|
68
|
+
parallel-finished: true
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
name: "CodeQL"
|
|
16
16
|
|
|
17
|
-
on:
|
|
17
|
+
on: # yamllint disable-line rule:truthy
|
|
18
18
|
push:
|
|
19
19
|
branches: [main]
|
|
20
20
|
pull_request:
|
|
@@ -42,11 +42,11 @@ jobs:
|
|
|
42
42
|
|
|
43
43
|
steps:
|
|
44
44
|
- name: Checkout repository
|
|
45
|
-
uses: actions/checkout@
|
|
45
|
+
uses: actions/checkout@v7
|
|
46
46
|
|
|
47
47
|
# Initializes the CodeQL tools for scanning.
|
|
48
48
|
- name: Initialize CodeQL
|
|
49
|
-
uses: github/codeql-action/init@
|
|
49
|
+
uses: github/codeql-action/init@v4
|
|
50
50
|
with:
|
|
51
51
|
languages: ${{ matrix.language }}
|
|
52
52
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
@@ -55,7 +55,7 @@ jobs:
|
|
|
55
55
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
56
56
|
|
|
57
57
|
- name: Autobuild
|
|
58
|
-
uses: github/codeql-action/autobuild@
|
|
58
|
+
uses: github/codeql-action/autobuild@v4
|
|
59
59
|
|
|
60
60
|
- name: Perform CodeQL Analysis
|
|
61
|
-
uses: github/codeql-action/analyze@
|
|
61
|
+
uses: github/codeql-action/analyze@v4
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
name: "Draft new release"
|
|
4
4
|
|
|
5
|
-
on:
|
|
5
|
+
on: # yamllint disable-line rule:truthy
|
|
6
6
|
workflow_dispatch:
|
|
7
7
|
inputs:
|
|
8
8
|
tag:
|
|
@@ -14,33 +14,36 @@ jobs:
|
|
|
14
14
|
name: "Draft a new release"
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v7
|
|
18
18
|
|
|
19
|
-
- name:
|
|
20
|
-
|
|
21
|
-
git checkout -b release/${{ github.event.inputs.tag }}
|
|
22
|
-
|
|
23
|
-
- name: Update changelog
|
|
24
|
-
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
|
|
19
|
+
- name: Setup Python
|
|
20
|
+
uses: actions/setup-python@v7
|
|
25
21
|
with:
|
|
26
|
-
version:
|
|
22
|
+
python-version: '3.11'
|
|
23
|
+
cache: 'pip'
|
|
24
|
+
cache-dependency-path: '**/setup.cfg'
|
|
27
25
|
|
|
28
|
-
- name:
|
|
26
|
+
- name: Update CHANGELOG
|
|
27
|
+
env:
|
|
28
|
+
RELEASE_TAG: ${{ github.event.inputs.tag }}
|
|
29
29
|
run: |
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
python3 -m pip install mdformat-gfm 'git+https://github.com/Takishima/keepachangelog@v1.0.1'
|
|
31
|
+
python3 -m keepachangelog release "${RELEASE_TAG}"
|
|
32
|
+
python3 -m mdformat CHANGELOG.md
|
|
33
|
+
|
|
34
|
+
- name: Commit changes
|
|
35
|
+
uses: stefanzweifel/git-auto-commit-action@v7
|
|
33
36
|
id: make-commit
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
with:
|
|
38
|
+
branch: release/${{ github.event.inputs.tag }}
|
|
39
|
+
create_branch: true
|
|
40
|
+
file_pattern: 'CHANGELOG.md'
|
|
41
|
+
commit_message: Preparing release ${{ github.event.inputs.tag }}
|
|
42
|
+
commit_author: github-actions[bot] <noreply@github.com>
|
|
40
43
|
|
|
41
44
|
# yamllint disable rule:line-length
|
|
42
45
|
- name: Create pull request
|
|
43
|
-
uses: thomaseizinger/create-pull-request@1.
|
|
46
|
+
uses: thomaseizinger/create-pull-request@1.4.0
|
|
44
47
|
env:
|
|
45
48
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
46
49
|
with:
|
|
@@ -48,11 +51,8 @@ jobs:
|
|
|
48
51
|
base: main
|
|
49
52
|
title: Release version ${{ github.event.inputs.tag }}
|
|
50
53
|
reviewers: ${{ github.actor }}
|
|
51
|
-
# Write a nice message to the user.
|
|
52
|
-
# We are claiming things here based on the `publish-new-release.yml` workflow.
|
|
53
|
-
# You should obviously adopt it to say the truth depending on your release workflow :)
|
|
54
54
|
body: |
|
|
55
55
|
Hi @${{ github.actor }}!
|
|
56
56
|
This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}.
|
|
57
|
-
I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.
|
|
57
|
+
I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit_hash }}.
|
|
58
58
|
Merging this PR will create a GitHub release and upload any assets that are created as part of the release build.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
name: Format
|
|
4
4
|
|
|
5
|
-
on:
|
|
5
|
+
on: # yamllint disable-line rule:truthy
|
|
6
6
|
pull_request:
|
|
7
7
|
push:
|
|
8
8
|
branches:
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
&& (startsWith(github.event.pull_request.head.ref, 'release/')
|
|
19
19
|
|| startsWith(github.event.pull_request.head.ref, 'hotfix/'))
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
22
|
- name: Installing parse-changelog
|
|
23
23
|
env:
|
|
24
24
|
target: x86_64-unknown-linux-musl
|
|
@@ -28,19 +28,23 @@ jobs:
|
|
|
28
28
|
curl -LsSf "${source_url}/${parse_changelog_tag}/parse-changelog-${target}.tar.gz" | tar xzf -
|
|
29
29
|
- name: Extract version from branch name (for release branches)
|
|
30
30
|
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/')
|
|
31
|
+
env:
|
|
32
|
+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
|
|
31
33
|
run: |
|
|
32
|
-
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
|
33
34
|
VERSION=${BRANCH_NAME#release/}
|
|
35
|
+
# CHANGELOG headings are parsed without the leading "v"
|
|
36
|
+
VERSION=${VERSION#v}
|
|
34
37
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
35
|
-
git tag v${RELEASE_VERSION}
|
|
36
38
|
|
|
37
39
|
- name: Extract version from branch name (for hotfix branches)
|
|
38
40
|
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'hotfix/')
|
|
41
|
+
env:
|
|
42
|
+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
|
|
39
43
|
run: |
|
|
40
|
-
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
|
41
44
|
VERSION=${BRANCH_NAME#hotfix/}
|
|
45
|
+
# CHANGELOG headings are parsed without the leading "v"
|
|
46
|
+
VERSION=${VERSION#v}
|
|
42
47
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
43
|
-
git tag v${RELEASE_VERSION}
|
|
44
48
|
|
|
45
49
|
- name: Calling parse-changelog
|
|
46
50
|
run: ./parse-changelog CHANGELOG.md "${RELEASE_VERSION}"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
name: "Publish new release"
|
|
4
4
|
|
|
5
|
-
on:
|
|
5
|
+
on: # yamllint disable-line rule:truthy
|
|
6
6
|
push:
|
|
7
7
|
tags:
|
|
8
8
|
- v[0-9]+.*
|
|
@@ -23,12 +23,9 @@ jobs:
|
|
|
23
23
|
|| startsWith(github.event.pull_request.head.ref, 'hotfix/')))
|
|
24
24
|
|
|
25
25
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
run: |
|
|
30
|
-
git fetch --prune --unshallow
|
|
31
|
-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
26
|
+
- uses: actions/checkout@v7
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0 # full history and tags for SCM versioning to work
|
|
32
29
|
|
|
33
30
|
- name: Extract version from tag name
|
|
34
31
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
@@ -39,15 +36,17 @@ jobs:
|
|
|
39
36
|
|
|
40
37
|
- name: Extract version from branch name (for release branches)
|
|
41
38
|
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/')
|
|
39
|
+
env:
|
|
40
|
+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
|
|
42
41
|
run: |
|
|
43
|
-
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
|
44
42
|
VERSION=${BRANCH_NAME#release/v}
|
|
45
43
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
46
44
|
|
|
47
45
|
- name: Extract version from branch name (for hotfix branches)
|
|
48
46
|
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'hotfix/')
|
|
47
|
+
env:
|
|
48
|
+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
|
|
49
49
|
run: |
|
|
50
|
-
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
|
51
50
|
VERSION=${BRANCH_NAME#hotfix/}
|
|
52
51
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
53
52
|
|
|
@@ -70,7 +69,7 @@ jobs:
|
|
|
70
69
|
python3 -m pip install twine --prefer-binary
|
|
71
70
|
python3 -m twine check dist/*
|
|
72
71
|
|
|
73
|
-
# Code below inspired from this action:
|
|
72
|
+
# Code below inspired from this action: # yamllint disable-line rule:truthy
|
|
74
73
|
# - uses: taiki-e/create-gh-release-action@v1
|
|
75
74
|
# with:
|
|
76
75
|
# title: flake8-secure-coding-standard $tag
|
|
@@ -99,11 +98,11 @@ jobs:
|
|
|
99
98
|
dist/*
|
|
100
99
|
|
|
101
100
|
- name: Setup Python for Pypi upload
|
|
102
|
-
uses: actions/setup-python@
|
|
101
|
+
uses: actions/setup-python@v7
|
|
103
102
|
|
|
104
103
|
- name: Publish standard package
|
|
105
104
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
106
105
|
with:
|
|
107
106
|
user: __token__
|
|
108
107
|
password: ${{ secrets.pypi_password }}
|
|
109
|
-
|
|
108
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: Pull requests
|
|
4
|
+
on: # yamllint disable-line rule:truthy
|
|
5
|
+
pull_request:
|
|
6
|
+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
update-changelog:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: "Pre-commit CI CHANGELOG auto-update"
|
|
12
|
+
if: >
|
|
13
|
+
(github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate') &&
|
|
14
|
+
(github.event.action == 'opened')
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v7
|
|
17
|
+
with:
|
|
18
|
+
ref: ${{ github.event.pull_request.head.ref }}
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
token: ${{ secrets.PRE_COMMIT_CI_CHANGELOG }}
|
|
21
|
+
|
|
22
|
+
- name: Setup Python
|
|
23
|
+
uses: actions/setup-python@v7
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.11'
|
|
26
|
+
cache: 'pip'
|
|
27
|
+
cache-dependency-path: '**/setup.cfg'
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python3 -m pip install 'git+https://github.com/Takishima/pre-commit-changelog-auto-update@v1.0.0'
|
|
32
|
+
|
|
33
|
+
- name: Run Python script
|
|
34
|
+
env:
|
|
35
|
+
PR_BODY: ${{ github.event.pull_request.body }}
|
|
36
|
+
run: |
|
|
37
|
+
python3 -m update_changelog --pr-body "${PR_BODY}"
|
|
38
|
+
|
|
39
|
+
- name: Commit changes
|
|
40
|
+
id: commit
|
|
41
|
+
uses: EndBug/add-and-commit@v11
|
|
42
|
+
with:
|
|
43
|
+
author_name: github-actions[bot]
|
|
44
|
+
author_email: noreply@github.com
|
|
45
|
+
message: Update CHANGELOG
|
|
46
|
+
|
|
47
|
+
changelog:
|
|
48
|
+
needs: update-changelog
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
name: CHANGELOG enforcer
|
|
51
|
+
if: '!cancelled()'
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v7
|
|
54
|
+
with:
|
|
55
|
+
ref: ${{ github.event.pull_request.head.ref }}
|
|
56
|
+
fetch-depth: 0
|
|
57
|
+
|
|
58
|
+
- uses: dangoslen/changelog-enforcer@v3
|
|
59
|
+
with:
|
|
60
|
+
changeLogPath: 'CHANGELOG.md'
|
|
61
|
+
skipLabels: 'Skip-Changelog,dependencies'
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
repos:
|
|
4
|
+
- repo: meta
|
|
5
|
+
hooks:
|
|
6
|
+
- id: check-useless-excludes
|
|
7
|
+
|
|
8
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
9
|
+
rev: v6.0.0
|
|
10
|
+
hooks:
|
|
11
|
+
- id: check-added-large-files
|
|
12
|
+
- id: check-case-conflict
|
|
13
|
+
- id: check-merge-conflict
|
|
14
|
+
- id: check-symlinks
|
|
15
|
+
- id: check-yaml
|
|
16
|
+
- id: check-toml
|
|
17
|
+
- id: debug-statements
|
|
18
|
+
- id: end-of-file-fixer
|
|
19
|
+
- id: mixed-line-ending
|
|
20
|
+
- id: trailing-whitespace
|
|
21
|
+
|
|
22
|
+
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
23
|
+
rev: v1.5.6
|
|
24
|
+
hooks:
|
|
25
|
+
- id: insert-license
|
|
26
|
+
files: \.py$
|
|
27
|
+
args:
|
|
28
|
+
- --license-filepath
|
|
29
|
+
- misc/license_header.txt
|
|
30
|
+
- id: remove-tabs
|
|
31
|
+
|
|
32
|
+
- repo: https://github.com/codespell-project/codespell
|
|
33
|
+
rev: v2.4.3
|
|
34
|
+
hooks:
|
|
35
|
+
- id: codespell
|
|
36
|
+
args: [-I, .codespell.allow]
|
|
37
|
+
|
|
38
|
+
- repo: https://github.com/adrienverge/yamllint.git
|
|
39
|
+
rev: v1.38.0
|
|
40
|
+
hooks:
|
|
41
|
+
- id: yamllint
|
|
42
|
+
|
|
43
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
44
|
+
rev: v0.17.5
|
|
45
|
+
hooks:
|
|
46
|
+
- id: ruff-check
|
|
47
|
+
name: ruff (fix)
|
|
48
|
+
args:
|
|
49
|
+
- --fix
|
|
50
|
+
- --exit-non-zero-on-fix
|
|
51
|
+
- --output-format=full
|
|
52
|
+
- --show-fixes
|
|
53
|
+
|
|
54
|
+
- id: ruff-format
|
|
55
|
+
name: ruff (format)
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [v1.5.0] - 2026-11-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Drop support for Python 3.8 and 3.9 (both end-of-life); Python 3.10 is now the minimum version
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Support for Python 3.14 (removed usage of `ast.Str` and `ast.Num`)
|
|
19
|
+
|
|
20
|
+
### Repository
|
|
21
|
+
|
|
22
|
+
- Update `action/setup-python` GitHub Action to v7
|
|
23
|
+
- Update `action/checkout` GitHub Action to v7
|
|
24
|
+
- Update GitHub Action `thomaseizinger/create-pull-request` to v1.4.0
|
|
25
|
+
- Update GitHub Action `stefanzweifel/git-auto-commit-action` to v7
|
|
26
|
+
- Update GitHub Action `EndBug/add-and-commit` to v11
|
|
27
|
+
- Update GitHub Action `github/codeql-action` to v4
|
|
28
|
+
- Run CI for Python 3.10 to 3.15 on all platforms (Python 3.8 and 3.9 are not available on `ubuntu-latest` anymore)
|
|
29
|
+
- Upload coverage data using the `coverallsapp/github-action` GitHub Action
|
|
30
|
+
- Group Dependabot updates into a single pull request and do not require a CHANGELOG entry for them
|
|
31
|
+
- Pass GitHub event data to workflow scripts through environment variables
|
|
32
|
+
- Fix the CHANGELOG parsing check on release pull requests (strip the leading `v` from the version)
|
|
33
|
+
- Update `adrienverge/yamllint.git` hook to v1.38.0
|
|
34
|
+
- Update `astral-sh/ruff-pre-commit` hook to v0.17.5
|
|
35
|
+
- Update `codespell-project/codespell` hook to v2.4.3
|
|
36
|
+
- Update `Lucas-C/pre-commit-hooks` hook to v1.5.6
|
|
37
|
+
- Update `pre-commit/pre-commit-hooks` hook to v6.0.0
|
|
38
|
+
- Remove the `doc8` and `blacken-docs` hooks (no reStructuredText files or Python code blocks to check)
|
|
39
|
+
- Rename the `ruff` hook to `ruff-check` and run it before `ruff-format`
|
|
40
|
+
- Move the ruff linter settings to the `lint` section, target Python 3.10 and drop removed rules
|
|
41
|
+
|
|
42
|
+
## [v1.4.1] - 2024-01-07
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- Bump maximal allowed `flake8` version to v7.x
|
|
47
|
+
|
|
48
|
+
### Repository
|
|
49
|
+
|
|
50
|
+
- Replace most Python pre-commit hooks with [ruff](https://beta.ruff.rs/docs/)
|
|
51
|
+
- Update release drafting GitHub workflow
|
|
52
|
+
- Modify pull requests workflow to automatically update CHANGELOG file if it was created by pre-commit.ci
|
|
53
|
+
- Update GitHub Action `github/codeql-action` from v2 to v3
|
|
54
|
+
- Update GitHub Action `stefanzweifel/git-auto-commit-action` from v4 to v5
|
|
55
|
+
- Update `thomaseizinger/create-pull-request` GitHub Action to v1.3.1
|
|
56
|
+
- Update `Lucas-C/pre-commit-hooks` hook to v1.5.4
|
|
57
|
+
- Update `asottile/blacken-docs` hook to v1.16.0
|
|
58
|
+
- Update `astral-sh/ruff-pre-commit` to v0.1.9
|
|
59
|
+
- Update `codespell-project/codespell` hook to v2.2.6
|
|
60
|
+
- Update `pre-commit/pre-commit-hooks` hook to v4.5.0
|
|
61
|
+
- Update `yamllint` hook to v1.33.0
|
|
62
|
+
|
|
63
|
+
## [v1.4.0] - 2023-02-06
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
|
|
67
|
+
- Changed minimum Python version to 3.8.X
|
|
68
|
+
- Add support for flake8 6.0.0+
|
|
69
|
+
|
|
70
|
+
### Updated
|
|
71
|
+
|
|
72
|
+
- Update GitHub release publishing workflow
|
|
73
|
+
- Added some more pre-commit hooks:
|
|
74
|
+
- doc8
|
|
75
|
+
- codespell
|
|
76
|
+
- yamllint
|
|
77
|
+
- blacken-docs
|
|
78
|
+
- pyupgrade
|
|
79
|
+
|
|
80
|
+
### Repository
|
|
81
|
+
|
|
82
|
+
- Remove soon to be deprecated `version` in GitHub workflows
|
|
83
|
+
- Update `thomaseizinger/keep-a-changelog-new-release` GitHub action to v1.3.0
|
|
84
|
+
- Update `Lucas-C/pre-commit-hooks` hook to v1.4.2
|
|
85
|
+
- Update `asottile/pyupgrade` to v3.2.0
|
|
86
|
+
- Update `black` hook to v22.12.0
|
|
87
|
+
- Update `blacken-docs` hook to v1.13.0
|
|
88
|
+
- Update `codespell` hook to v2.2.2
|
|
89
|
+
- Update `flake8` hook to v5.0.4
|
|
90
|
+
- Update `isort` hook to v5.12.0
|
|
91
|
+
- Update `pre-commit/mirrors-pylint` to v3.0.0a5
|
|
92
|
+
- Update `pre-commit/pre-commit-hooks` to v4.4.0
|
|
93
|
+
- Update `pyupgrade` hook to v3.3.1
|
|
94
|
+
- Update `yamllint` hook to v1.29.0
|
|
95
|
+
|
|
96
|
+
## [v1.3.0] - 2022-06-02
|
|
97
|
+
|
|
98
|
+
### Added
|
|
99
|
+
|
|
100
|
+
- Added SCS112 to avoid using `os.open()` with unsafe permissions
|
|
101
|
+
- Added SCS113 to avoid using `pickle.load()` and `pickle.loads()`
|
|
102
|
+
- Added SCS114 to avoid using `marshal.load()` and `marshal.loads()`
|
|
103
|
+
- Added SCS115 to avoid using `shelve.open()`
|
|
104
|
+
- Added SCS116 to avoid using `os.mkdir` and `os.makedirs` with unsafe file permissions
|
|
105
|
+
- Added SCS117 to avoid using `os.mkfifo` with unsafe file permissions
|
|
106
|
+
- Added SCS118 to avoid using `os.mknod` with unsafe file permissions
|
|
107
|
+
- Added SCS119 to avoid using `os.chmod` with unsafe file permissions (W ^ X for group and others)
|
|
108
|
+
|
|
109
|
+
### Fixed
|
|
110
|
+
|
|
111
|
+
- Fix typos found by `codespell`
|
|
112
|
+
- Fix issues discovered by `yamllint`
|
|
113
|
+
|
|
114
|
+
### Repository
|
|
115
|
+
|
|
116
|
+
- Add Python 3.10 to the list of configurations for testing
|
|
117
|
+
- Add `codespell` pre-commit hook
|
|
118
|
+
- Add `yamllint` configuration file and pre-commit hook
|
|
119
|
+
|
|
120
|
+
## [v1.2.2] - 2022-05-24
|
|
121
|
+
|
|
122
|
+
### Updated
|
|
123
|
+
|
|
124
|
+
- Update GitHub release publishing workflow
|
|
125
|
+
|
|
126
|
+
### Fixed
|
|
127
|
+
|
|
128
|
+
- Fix issue with recognizing YAML load function calls (thanks to [@D-Bhatta](https://github.com/D-Bhatta))
|
|
129
|
+
|
|
130
|
+
### Repository
|
|
131
|
+
|
|
132
|
+
- Update `dangoslen/changelog-enforcer` GitHub action to v3
|
|
133
|
+
- Update `isort` hook to v5.10.1
|
|
134
|
+
- Update `black` hook to v22.3.0
|
|
135
|
+
- Update `check-manifest` hook to v0.48
|
|
136
|
+
- Update `flake8` hook to v4.0.1
|
|
137
|
+
- Update `Lucas-C/pre-commit-hooks` hook to v1.2.0
|
|
138
|
+
- Update `pre-commit/pre-commit-hooks` to v4.2.0
|
|
139
|
+
- Update `thomaseizinger/create-pull-request` GitHub action to v1.2.2
|
|
140
|
+
- Update `thomaseizinger/keep-a-changelog-new-release` GitHub action to v1.3.0
|
|
141
|
+
- Update GitHub's CodeQL action to v2
|
|
142
|
+
|
|
143
|
+
## [v1.2.1] - 2021-07-19
|
|
144
|
+
|
|
145
|
+
- Reworded SCS103 and extend it to include a few more cases:
|
|
146
|
+
- `subprocess.getoutput()`
|
|
147
|
+
- `subprocess.getstatusoutput()`
|
|
148
|
+
- `asyncio.create_subprocess_shell()`
|
|
149
|
+
- `loop.subprocess_shell()`
|
|
150
|
+
|
|
151
|
+
## [v1.2.0] - 2021-07-19
|
|
152
|
+
|
|
153
|
+
- Added SCS110 to avoid using `os.popen()` as it internally uses `subprocess.Popen` with `shell=True`
|
|
154
|
+
- Added SCS111 to avoid using `shlex.quote()` on non-POSIX platforms.
|
|
155
|
+
|
|
156
|
+
## [v1.1.0] - 2021-07-02
|
|
157
|
+
|
|
158
|
+
### Added
|
|
159
|
+
|
|
160
|
+
- Added SCS109 to prefer `os.open()` to the builtin `open` when in writing mode
|
|
161
|
+
|
|
162
|
+
### Repository
|
|
163
|
+
|
|
164
|
+
- Update pre-commit configuration
|
|
165
|
+
|
|
166
|
+
## [v1.0.1] - 2021-06-21
|
|
167
|
+
|
|
168
|
+
### Updated
|
|
169
|
+
|
|
170
|
+
- Updated error messages to be more in line with README
|
|
171
|
+
- Updated README
|
|
172
|
+
|
|
173
|
+
## [v1.0.0] - 2021-06-20
|
|
174
|
+
|
|
175
|
+
Initial release
|
|
176
|
+
|
|
177
|
+
[unreleased]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.5.0...HEAD
|
|
178
|
+
[v1.0.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/c18cc7130a40405bd92e49b22675e8ddbe0bc8cd...v1.0.0
|
|
179
|
+
[v1.0.1]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.0.0...v1.0.1
|
|
180
|
+
[v1.1.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.0.1...v1.1.0
|
|
181
|
+
[v1.2.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.1.0...v1.2.0
|
|
182
|
+
[v1.2.1]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.2.0...v1.2.1
|
|
183
|
+
[v1.2.2]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.2.1...v1.2.2
|
|
184
|
+
[v1.3.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.2.2...v1.3.0
|
|
185
|
+
[v1.4.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.3.0...v1.4.0
|
|
186
|
+
[v1.4.1]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.4.0...v1.4.1
|
|
187
|
+
[v1.5.0]: https://github.com/Takishima/flake8-secure-coding-standard/compare/v1.4.1...v1.5.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: flake8-secure-coding-standard
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Flake8 plugin adding some checks to make Python code adhere to more secure coding standard
|
|
5
5
|
Home-page: https://github.com/Takishima/flake8-secure-coding-standard
|
|
6
6
|
Author: Damien Nguyen
|
|
@@ -9,14 +9,22 @@ License: Apache2
|
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Requires-Python: >=3.10
|
|
17
19
|
Description-Content-Type: text/markdown
|
|
18
|
-
Provides-Extra: test
|
|
19
20
|
License-File: LICENSE
|
|
21
|
+
Requires-Dist: flake8<8.0,>=3.7
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: mock; extra == "test"
|
|
24
|
+
Requires-Dist: pytest; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-mock; extra == "test"
|
|
27
|
+
Dynamic: license-file
|
|
20
28
|
|
|
21
29
|
# Flake8 Secure Coding Standard Plugin
|
|
22
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: flake8-secure-coding-standard
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Flake8 plugin adding some checks to make Python code adhere to more secure coding standard
|
|
5
5
|
Home-page: https://github.com/Takishima/flake8-secure-coding-standard
|
|
6
6
|
Author: Damien Nguyen
|
|
@@ -9,14 +9,22 @@ License: Apache2
|
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Requires-Python: >=3.10
|
|
17
19
|
Description-Content-Type: text/markdown
|
|
18
|
-
Provides-Extra: test
|
|
19
20
|
License-File: LICENSE
|
|
21
|
+
Requires-Dist: flake8<8.0,>=3.7
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: mock; extra == "test"
|
|
24
|
+
Requires-Dist: pytest; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-mock; extra == "test"
|
|
27
|
+
Dynamic: license-file
|
|
20
28
|
|
|
21
29
|
# Flake8 Secure Coding Standard Plugin
|
|
22
30
|
|