Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit a998419

Browse files
committed
refactor: ♻️ minor fixes
1 parent 39151f7 commit a998419

10 files changed

Lines changed: 21 additions & 37 deletions

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
<!-- insertion marker -->
9+
## [1.2.2](https://github.com/ilbumi/copier-python-vscode/releases/tag/1.2.2) - 2024-02-03
10+
11+
<small>[Compare with the previous version](https://github.com/ilbumi/copier-python-vscode/compare/1.2.1...1.2.2)</small>
12+
13+
### Minor fixes and refactoring
14+
15+
- Move linting and formatting configs from `config` to `.devconfig`
16+
- Remove `python3.9`
17+
- Remove unused features
18+
919
## [1.2.1](https://github.com/ilbumi/copier-python-vscode/releases/tag/1.2.1) - 2024-02-03
1020

1121
<small>[Compare with the previous version](https://github.com/ilbumi/copier-python-vscode/compare/1.2.0...1.2.1)</small>

project/.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repos:
1010
rev: v0.1.14
1111
hooks:
1212
- id: ruff
13-
args: [ --config, config/ruff.toml, --fix ]
13+
args: [ --config, .devconfig/ruff.toml, --fix ]
1414
- repo: https://github.com/pre-commit/mirrors-mypy
1515
rev: '' # Use the sha / tag you want to point at
1616
hooks:
1717
- id: mypy
18-
args: [--config-file, config/mypy.ini]
18+
args: [--config-file, .devconfig/mypy.ini]

project/README.md.jinja

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# {{ project_name }}
22

3-
{% if repository_provider == "github.com" -%}
4-
[![ci](https://github.com/{{ repository_namespace }}/{{ repository_name }}/workflows/ci/badge.svg)](https://github.com/{{ repository_namespace }}/{{ repository_name }}/actions?query=workflow%3Aci)
5-
[![documentation](https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat)](https://{{ repository_namespace }}.{{ repository_provider[:-4] }}.io/{{ repository_name }}/)
6-
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://gitter.im/{% if repository_namespace != author_username %}{{ repository_namespace }}/{{ repository_name }}{% else %}{{ repository_name }}/community{% endif %})
7-
{% endif -%}
8-
93
{{ project_description }}
104

115
## Installation

project/noxfile.py.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def format(session: Session) -> None:
3131
session.run_always("pdm", "install", "-G", "ci-quality", external=True)
3232
session.run("ssort", *PYSRC)
3333
session.run("isort", *PYSRC)
34-
session.run("ruff", "check", "--config", "config/ruff.toml", "--fix", *PYSRC)
35-
session.run("black", "--config", "config/black.toml", *PYSRC)
34+
session.run("ruff", "check", "--config", ".devconfig/ruff.toml", "--fix", *PYSRC)
35+
session.run("black", "--config", ".devconfig/black.toml", *PYSRC)
3636

3737

3838
@nox.session(venv_backend="none")
@@ -43,7 +43,7 @@ def lint(session: Session) -> None:
4343
session (Session): nox session object
4444
"""
4545
session.run_always("pdm", "install", "-G", "ci-quality", external=True)
46-
session.run("ruff", "check", "--config", "config/ruff.toml", *PYSRC)
46+
session.run("ruff", "check", "--config", ".devconfig/ruff.toml", *PYSRC)
4747

4848

4949
@nox.session(venv_backend="none")
@@ -54,7 +54,7 @@ def check_types(session: Session) -> None:
5454
session (Session): nox session object
5555
"""
5656
session.run_always("pdm", "install", "-G", "ci-quality", external=True)
57-
session.run("mypy", "--config-file", "config/mypy.ini", *PYSRC)
57+
session.run("mypy", "--config-file", ".devconfig/mypy.ini", *PYSRC)
5858

5959

6060
@nox.session(venv_backend="none")
@@ -65,7 +65,7 @@ def check_safety(session: Session) -> None:
6565
session (Session): nox session object
6666
"""
6767
session.run_always("pdm", "install", "-G", "ci-quality", external=True)
68-
session.run("bandit", "-r", "--configfile", "config/bandit.toml", *PYSRC)
68+
session.run("bandit", "-r", "--configfile", ".devconfig/bandit.toml", *PYSRC)
6969
with tempfile.NamedTemporaryFile() as requirements:
7070
session.run(
7171
"pdm", "export", "-f", "requirements", "-o", requirements.name, "--without-hashes", external=True

project/pyproject.toml.jinja

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ license = {text = "
7777
None
7878
{%- endif %}"}
7979
readme = "README.md"
80-
requires-python = ">=3.8"
80+
requires-python = ">=3.10"
8181
keywords = []
8282
dynamic = ["version"]
8383
classifiers = [
@@ -86,7 +86,6 @@ classifiers = [
8686
"Programming Language :: Python",
8787
"Programming Language :: Python :: 3",
8888
"Programming Language :: Python :: 3 :: Only",
89-
"Programming Language :: Python :: 3.9",
9089
"Programming Language :: Python :: 3.10",
9190
"Programming Language :: Python :: 3.11",
9291
"Programming Language :: Python :: 3.12",
@@ -124,24 +123,9 @@ editable-backend = "editables"
124123

125124
[tool.pdm.dev-dependencies]
126125
nox = ["nox"]
127-
full-dev = ["{{ python_package_distribution_name }}[nox,docs,quality,typing,security,tests,precommit]"]
128-
ci-quality = ["{{ python_package_distribution_name }}[nox,docs,quality,typing,security]"]
126+
full-dev = ["{{ python_package_distribution_name }}[nox,quality,typing,security,tests,precommit]"]
127+
ci-quality = ["{{ python_package_distribution_name }}[nox,quality,typing,security]"]
129128
ci-tests = ["{{ python_package_distribution_name }}[nox,tests]"]
130-
docs = [
131-
"black>=23.1",
132-
"markdown-callouts>=0.2",
133-
"markdown-exec>=0.5",
134-
"mkdocs>=1.5",
135-
"mkdocs-coverage>=0.2",
136-
"mkdocs-gen-files>=0.3",
137-
"mkdocs-git-committers-plugin-2>=1.1",
138-
{#- "mkdocs-git-revision-date-localized-plugin>=1.2", #}
139-
"mkdocs-literate-nav>=0.4",
140-
"mkdocs-material>=7.3",
141-
"mkdocs-minify-plugin>=0.6.4",
142-
"mkdocstrings[python]>=0.18",
143-
"toml>=0.10",
144-
]
145129
maintain = [
146130
"black>=23.1",
147131
"blacken-docs>=1.13",

project/{% if repository_provider == 'gitlab.com' %}.gitlab-ci.yml{% endif %}.jinja

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stages:
2121

2222
.quality-template: &quality
2323
<<: *install-deps
24-
image: python:3.9
24+
image: python:3.10
2525
stage: quality
2626

2727
lint:
@@ -43,10 +43,6 @@ check-types:
4343
stage: tests
4444
script: pdm run nox -e test
4545

46-
python3.9:
47-
<<: *test
48-
image: python3.9
49-
5046
python3.10:
5147
<<: *test
5248
image: python3.10

0 commit comments

Comments
 (0)