Skip to content

Commit 6b54b35

Browse files
committed
Update project from its own template via Copier. (v1.15)
1 parent e91a7c2 commit 6b54b35

18 files changed

Lines changed: 107 additions & 357 deletions

File tree

.auxiliary/configuration/copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v1.13
2+
_commit: v1.15
33
_src_path: gh:emcd/python-project-common
44
author_email: emcd@users.noreply.github.com
55
author_name: Eric McDonald

.auxiliary/configuration/pre-commit.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,6 @@ repos:
4646
name: 'Lint: Ruff'
4747
fail_fast: true
4848

49-
- repo: https://github.com/PyCQA/bandit
50-
rev: 1.8.3
51-
hooks:
52-
- id: bandit
53-
name: 'Lint: Bandit'
54-
args: [ '-c', 'pyproject.toml' ]
55-
#stages: [ 'pre-push' ]
56-
fail_fast: true
57-
additional_dependencies: [ 'bandit[toml]' ]
58-
59-
- repo: https://github.com/guilatrova/tryceratops
60-
rev: v2.4.1
61-
hooks:
62-
- id: tryceratops
63-
name: 'Lint: Tryceratops'
64-
#stages: [ 'pre-push' ]
65-
fail_fast: true
66-
6749
- repo: https://github.com/semgrep/semgrep
6850
rev: 'v1.89.0'
6951
hooks:
@@ -86,15 +68,6 @@ repos:
8668
pass_filenames: false
8769
entry: 'hatch --env develop run pyright'
8870

89-
- id: hatch-pylint
90-
name: 'Lint: Pylint'
91-
stages: [ 'pre-push' ]
92-
fail_fast: true
93-
language: system
94-
always_run: true
95-
pass_filenames: false
96-
entry: 'hatch --env develop run pylint --recursive=yes --reports=no --score=no sources tests'
97-
9871
- id: hatch-coverage
9972
name: 'Coverage: Pytest'
10073
stages: [ 'pre-push' ]

.github/workflows/releaser.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
test:
2626
needs: [initialize]
27-
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.13
27+
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.15
2828
with:
2929
matrix-exclusions: '${{ needs.initialize.outputs.matrix-exclusions }}'
3030
platforms: '${{ needs.initialize.outputs.platforms }}'
@@ -33,7 +33,7 @@ jobs:
3333

3434
report:
3535
needs: [initialize, test]
36-
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.13
36+
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.15
3737
with:
3838
python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'
3939

@@ -43,14 +43,14 @@ jobs:
4343
contents: write
4444
id-token: write
4545
pages: write
46-
uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@v1.13
46+
uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@v1.15
4747
with:
4848
include-reports: true
4949
python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'
5050

5151
package:
5252
needs: [initialize, docsgen]
53-
uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@v1.13
53+
uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@v1.15
5454
with:
5555
artifacts-path: '.auxiliary/artifacts/hatch-build' # TODO: Use environment.
5656
python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'
@@ -95,7 +95,7 @@ jobs:
9595
steps:
9696

9797
- name: Prepare Python
98-
uses: emcd/python-project-common/.github/actions/python-hatch@v1.13
98+
uses: emcd/python-project-common/.github/actions/python-hatch@v1.15
9999
with:
100100
python-version: ${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}
101101

.github/workflows/tester.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
test:
1616
needs: [initialize]
17-
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.13
17+
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@v1.15
1818
with:
1919
matrix-exclusions: '${{ needs.initialize.outputs.matrix-exclusions }}'
2020
platforms: '${{ needs.initialize.outputs.platforms }}'
@@ -23,6 +23,6 @@ jobs:
2323

2424
report:
2525
needs: [initialize, test]
26-
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.13
26+
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@v1.15
2727
with:
2828
python-version: '${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'

README.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ Features
8787
:alt: pre-commit
8888
:target: https://github.com/pre-commit/pre-commit
8989

90-
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
91-
:alt: Bandit
92-
:target: https://github.com/PyCQA/bandit
93-
94-
.. image:: https://img.shields.io/badge/linting-pylint-yellowgreen
95-
:alt: Pylint
96-
:target: https://github.com/pylint-dev/pylint
97-
9890
.. image:: https://microsoft.github.io/pyright/img/pyright_badge.svg
9991
:alt: Pyright
10092
:target: https://microsoft.github.io/pyright

documentation/conf.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
https://jareddillard.com/blog/common-ways-to-customize-sphinx-themes.html
88
'''
99

10-
# mypy: ignore-errors
11-
# pylint: disable=consider-using-namedtuple-or-dataclass
1210
# ruff: noqa: E402,F401
1311

1412

1513
def _calculate_copyright_notice( ):
16-
from datetime import datetime as DateTime
14+
from datetime import datetime as DateTime, timezone as TimeZone
1715
first_year = 2024
18-
now_year = DateTime.utcnow( ).year
16+
now_year = DateTime.now( TimeZone.utc ).year
1917
if first_year < now_year: year_range = f"{first_year}-{now_year}"
2018
else: year_range = str( first_year )
2119
return f"{year_range}, Eric McDonald"
@@ -36,7 +34,7 @@ def _import_version( ):
3634

3735
project = 'python-project-common'
3836
author = 'Eric McDonald'
39-
copyright = ( # pylint: disable=redefined-builtin
37+
copyright = ( # noqa: A001
4038
_calculate_copyright_notice( ) )
4139
release = version = _import_version( )
4240

documentation/devapi.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. vim: set fileencoding=utf-8:
2-
.. -*- coding: utf-8 -*-
1+
.. vim: set filetype=rst fileencoding=utf-8:
2+
.. -*- mode: rst ; coding: utf-8 -*-
33
.. +--------------------------------------------------------------------------+
44
| |
55
| Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -25,7 +25,7 @@ Internal Development Interface
2525
*******************************************************************************
2626

2727

28-
Package ``emdproj.__``
28+
Package ``emcdproj.__``
2929
===============================================================================
3030

3131

0 commit comments

Comments
 (0)