Skip to content

Commit

Permalink
chore: Update copier template to v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedouzas committed Oct 26, 2024
1 parent f4c9df4 commit 9c2be6b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_commit: 0.8.2
_commit: 0.11.0
_src_path: gh:georgedouzas/copier-pdm-nox
author_email: gdouzas@icloud.com
author_fullname: Georgios Douzas
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
3.10
3.11
3.12
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
3.10
3.11
3.12
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def formatting(session: nox.Session, file: str) -> None:
if session.posargs[0] in ['code', 'all']:
session.run('black', file)
if session.posargs[0] in ['docstrings', 'all']:
session.run('docformatter', '--in-place', '--recursive', '--close-quotes-on-newline', file)
session.run('docformatter', file)


@nox.session(python=PYTHON_VERSIONS)
Expand Down
67 changes: 33 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,71 +56,70 @@ htmlcov pip-wheel-metadata site __pycache__ docs/generated .nox .ruff_cache pdm.
&& find . -name '.coverage*' -delete"""}
docs = "nox --error-on-external-run -R -s docs -- {args:serve}"
formatting = "nox --error-on-external-run -R -s formatting -- {args:all}"
checks = "nox --error-on-external-run -R -s checks -- {args:all}"
tests = "nox --error-on-external-run -R -s tests"
checks = "nox --default-venv-backend uv --error-on-external-run -R -s checks -- {args:all}"
tests = "nox --default-venv-backend uv --error-on-external-run -R -s tests"
changelog = "nox --error-on-external-run -R -s changelog"
release = "nox --error-on-external-run -R -s release"

[tool.pdm.dev-dependencies]
maintenance = [
"nox>=2022.8.7",
"nox[uv]>=2024.4.15",
]
docs = [
"mkdocs>=1.4.2",
"mkdocs-coverage>=0.2.6",
"mkdocs-gen-files>=0.3",
"mkdocs-literate-nav>=0.4",
"mkdocs-material>=7.3",
"mkdocs-gallery>=0.7.6",
"mkdocs-section-index>=0.3",
"mkdocstrings[python]>=0.20",
"markdown-callouts>=0.2",
"markdown-exec>=0.5",
"pandas>=1.5.3",
"matplotlib>=3.7.1",
"mkdocs>=1.6.0",
"mkdocs-coverage>=1.1.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.1",
"mkdocs-material>=9.5.27",
"mkdocs-gallery>=0.10.1",
"mkdocs-section-index>=0.3.9",
"mkdocstrings[python]>=0.25.1",
"markdown-callouts>=0.4.0",
"markdown-exec>=1.9.3",
'pandas>=2.2.2',
]
formatting = [
"black>=21.10b0",
"docformatter>=1.5.1",
"black>=24.4.2",
"docformatter>=1.7.5",
]
checks = [
"numpy>=1.22",
"ruff>=0.0.237",
"safety>=2",
"mypy>=0.910",
"types-markdown>=3.3",
"types-toml>=0.10",
"ruff>=0.5.0",
"safety>=3.2.3",
"mypy>=1.10.1",
"types-markdown>=3.6.0.20240316",
"types-toml>=0.10.8.20240310",
]
tests = [
"pytest>=6.2",
"pytest-cov>=3.0",
"pytest-randomly>=3.10",
"pytest-xdist>=2.4",
"pytest>=8.2.2",
"pytest-cov>=5.0.0",
"pytest-randomly>=3.15.0",
"pytest-xdist>=3.6.1",
]
changelog = [
"git-changelog>=1.0.0",
"git-changelog>=2.5.2",
]
release = [
"twine>=4.0.0",
"twine>=5.1.1",
]

[tool.black]
line-length = 120
extend-exclude = "(tests/fixtures|docs/generated)"
skip-string-normalization = true

[tool.docformatter]
in-place = true
recursive = true
close-quotes-on-newline = true
wrap-descriptions = 120

[tool.ruff]
fix = true
extend-exclude = ["docs/generated"]
force-exclude = true
line-length = 120
target-version = "py310"

[tool.ruff.lint]
fixable = ["C", "E", "F", "W", "B", "I", "D", "N", "UP", "YTT", "ANN", "S",
"BLE", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G",
"INP", "PIE", "T20", "PT", "Q", "RET501", "RET502", "RET503", "SIM",
"PTH", "PD", "PGH", "PL", "TRY", "RUF", "PLE", "PLR", "PLW", "TRY", "RUF"]
ignore = ["D202", "N806", "N803", "S101", "INP001", "Q000", "TRY002", "PLR0913", "EXE001", "EXE002", "E741"]
select = ["C", "E", "F", "W", "B", "I", "D", "N", "UP", "YTT", "ANN", "S",
"BLE", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G",
Expand Down

0 comments on commit 9c2be6b

Please sign in to comment.