Skip to content

Commit 9d9f573

Browse files
authored
Merge pull request #136 from 56kyle/release/1.0.0
Release/1.0.0
2 parents 56db1aa + bd02ddf commit 9d9f573

35 files changed

+1200
-747
lines changed

.cookiecutter.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"_checkout": null,
23
"_output_dir": "C:\\Users\\56kyl\\source\\repos",
3-
"_template": "gh:cjolowicz/cookiecutter-hypermodern-python",
4+
"_repo_dir": "./cookiecutter-hypermodern-python",
5+
"_template": "./cookiecutter-hypermodern-python",
46
"author": "Kyle Oliver",
57
"copyright_year": "2023",
68
"development_status": "Development Status :: 1 - Planning",
@@ -10,5 +12,5 @@
1012
"license": "MIT",
1113
"package_name": "pytest_static",
1214
"project_name": "pytest-static",
13-
"version": "0.0.0"
15+
"version": "0.3.0"
1416
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{py,toml}]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.yml,yaml,json]
14+
indent_style = space
15+
indent_size = 2

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22
select = B,B9,C,D,DAR,E,F,N,RST,S,W
33
ignore = E203,E501,RST201,RST203,RST301,W503,B905
4-
max-line-length = 80
4+
max-line-length = 120
55
max-complexity = 10
66
docstring-convention = google
77
per-file-ignores = tests/*:S101,D100,D101,D102,D103,D104 exceptions.py:D107

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ updates:
33
- package-ecosystem: github-actions
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: weekly
77
- package-ecosystem: pip
88
directory: "/.github/workflows"
99
schedule:
10-
interval: daily
10+
interval: weekly
1111
- package-ecosystem: pip
1212
directory: "/docs"
1313
schedule:
14-
interval: daily
14+
interval: weekly
1515
- package-ecosystem: pip
1616
directory: "/"
1717
schedule:
18-
interval: daily
18+
interval: weekly
1919
versioning-strategy: lockfile-only
2020
allow:
2121
- dependency-type: "all"

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
packages: write
15+
id-token: write
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Check out the repository
@@ -22,16 +23,16 @@ jobs:
2223
- name: Set up Python
2324
uses: actions/setup-python@v4
2425
with:
25-
python-version: "3.10"
26+
python-version: "3.12"
2627

2728
- name: Upgrade pip
2829
run: |
29-
pip install --constraint=.github/workflows/constraints.txt pip
30+
pip install --constraint=${{ github.workspace }}/.github/workflows/constraints.txt pip
3031
pip --version
3132
3233
- name: Install Poetry
3334
run: |
34-
pip install --constraint=.github/workflows/constraints.txt poetry
35+
pip install --constraint=${{ github.workspace }}/.github/workflows/constraints.txt poetry
3536
poetry --version
3637
3738
- name: Check if there is a parent commit
@@ -61,17 +62,12 @@ jobs:
6162
- name: Publish package on PyPI
6263
if: steps.check-version.outputs.tag
6364
uses: pypa/gh-action-pypi-publish@v1.8.10
64-
with:
65-
user: __token__
66-
password: ${{ secrets.PYPI_TOKEN }}
6765

6866
- name: Publish package on TestPyPI
6967
if: "! steps.check-version.outputs.tag"
7068
uses: pypa/gh-action-pypi-publish@v1.8.10
7169
with:
72-
user: __token__
73-
password: ${{ secrets.TEST_PYPI_TOKEN }}
74-
repository_url: https://test.pypi.org/legacy/
70+
repository-url: https://test.pypi.org/legacy/
7571

7672
- name: Publish the release notes
7773
uses: release-drafter/release-drafter@v5.23.0

.github/workflows/tests.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- { python: "3.10", os: "ubuntu-latest", session: "pre-commit" }
16-
- { python: "3.10", os: "ubuntu-latest", session: "safety" }
15+
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
16+
- { python: "3.12", os: "ubuntu-latest", session: "safety" }
17+
- { python: "3.12", os: "ubuntu-latest", session: "mypy" }
18+
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
1719
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
1820
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
19-
- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
21+
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
22+
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2023
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2124
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
22-
- { python: "3.8", os: "ubuntu-latest", session: "tests" }
23-
- { python: "3.10", os: "windows-latest", session: "tests" }
24-
- { python: "3.10", os: "macos-latest", session: "tests" }
25-
- { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
26-
- { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }
27-
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
25+
- { python: "3.12", os: "windows-latest", session: "tests" }
26+
- { python: "3.12", os: "macos-latest", session: "tests" }
27+
- { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
28+
- { python: "3.12", os: "ubuntu-latest", session: "xdoctest" }
29+
- { python: "3.12", os: "ubuntu-latest", session: "docs-build" }
2830

2931
env:
3032
NOXSESSION: ${{ matrix.session }}
@@ -36,13 +38,13 @@ jobs:
3638
uses: actions/checkout@v3
3739

3840
- name: Set up Python ${{ matrix.python }}
39-
uses: actions/setup-python@v4
41+
uses: actions/setup-python@v4.6.1
4042
with:
4143
python-version: ${{ matrix.python }}
4244

4345
- name: Upgrade pip
4446
run: |
45-
pip install --constraint=.github/workflows/constraints.txt pip
47+
pip install --constraint=${{ github.workspace }}/.github/workflows/constraints.txt pip
4648
pip --version
4749
4850
- name: Upgrade pip in virtual environments
@@ -56,13 +58,13 @@ jobs:
5658
5759
- name: Install Poetry
5860
run: |
59-
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
61+
pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt poetry
6062
poetry --version
6163
6264
- name: Install Nox
6365
run: |
64-
pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
65-
pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
66+
pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt nox
67+
pipx inject --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt nox nox-poetry
6668
nox --version
6769
6870
- name: Compute pre-commit cache key
@@ -115,24 +117,24 @@ jobs:
115117
uses: actions/checkout@v3
116118

117119
- name: Set up Python
118-
uses: actions/setup-python@v4
120+
uses: actions/setup-python@v4.6.1
119121
with:
120-
python-version: "3.10"
122+
python-version: "3.12"
121123

122124
- name: Upgrade pip
123125
run: |
124-
pip install --constraint=.github/workflows/constraints.txt pip
126+
pip install --constraint=${{ github.workspace }}/.github/workflows/constraints.txt pip
125127
pip --version
126128
127129
- name: Install Poetry
128130
run: |
129-
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
131+
pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt poetry
130132
poetry --version
131133
132134
- name: Install Nox
133135
run: |
134-
pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
135-
pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
136+
pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt nox
137+
pipx inject --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt nox nox-poetry
136138
nox --version
137139
138140
- name: Download coverage data

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
repos:
22
- repo: local
33
hooks:
4+
- id: bandit
5+
name: bandit
6+
entry: bandit
7+
language: system
8+
types: [python]
9+
require_serial: true
10+
args: ["-c", "bandit.yml"]
411
- id: black
512
name: black
613
entry: black

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
build:
33
os: ubuntu-20.04
44
tools:
5-
python: "3.10"
5+
python: "3.12"
66
sphinx:
77
configuration: docs/conf.py
88
formats: all

.safety-policy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: "3.0"
2+
3+
scanning-settings:
4+
max-depth: 6
5+
exclude: []
6+
include-files: []
7+
system:
8+
targets: []
9+
10+
report:
11+
dependency-vulnerabilities:
12+
enabled: true
13+
auto-ignore-in-report:
14+
python:
15+
environment-results: true
16+
unpinned-requirements: true
17+
cvss-severity: []
18+
19+
fail-scan-with-exit-code:
20+
dependency-vulnerabilities:
21+
enabled: true
22+
fail-on-any-of:
23+
cvss-severity:
24+
- critical
25+
- medium
26+
- high
27+
exploitability:
28+
- critical
29+
- medium
30+
- high
31+
32+
security-updates:
33+
dependency-vulnerabilities:
34+
auto-security-updates-limit:
35+
- patch
36+
37+
security:
38+
ignore-vulnerabilities:
39+
70612:
40+
reason: Jinja2 has no intentions of fixing this vulnerability.
41+
expires: "2025-01-01"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Request features on the [Issue Tracker].
3737

3838
## How to set up your development environment
3939

40-
You need Python 3.7+ and the following tools:
40+
You need Python 3.9+ and the following tools:
4141

4242
- [Poetry]
4343
- [Nox]

0 commit comments

Comments
 (0)