Skip to content

Commit

Permalink
Merge pull request #240 from bgilbert/pre-commit
Browse files Browse the repository at this point in the history
pre-commit: small cleanups
  • Loading branch information
bgilbert authored Nov 15, 2023
2 parents e73e76b + 0c4a99c commit 38f6ad1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/python-bump.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- Update Git main
- [ ] `git checkout main`
- [ ] Add classifier for new Python version to `pyproject.toml'
- [ ] In `pyproject.toml`, add classifier for new Python version and update `tool.black.target-version`
- [ ] Add new Python version to lists in `.github/workflows/python.yml`
- [ ] Commit and open a PR
- [ ] Merge the PR when CI passes
Expand Down
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ repos:
hooks:
- id: black
name: Format python code with black
language_version: python3
args: ["--skip-string-normalization"]

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ packages = ["openslide"]
[tool.setuptools.dynamic]
version = {attr = "openslide._version.__version__"}

[tool.black]
skip-string-normalization = true
target-version = ["py38", "py39", "py310", "py311", "py312"]

[tool.isort]
profile = "black"
force_sort_within_sections = true
Expand Down

0 comments on commit 38f6ad1

Please sign in to comment.