Skip to content

Commit f613a36

Browse files
authored
Merge pull request #127 from Preocts/preocts
Update pre-commit config to use new black mirror
2 parents 6b82d5c + 6b0a030 commit f613a36

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,11 @@ repos:
3333
- "--py38-plus"
3434

3535
# Format code. No, I don't like everything black does either.
36-
- repo: https://github.com/psf/black
37-
rev: 23.7.0
36+
- repo: https://github.com/psf/black-pre-commit-mirror
37+
rev: 23.9.0
3838
hooks:
3939
- id: black
4040

41-
# Format docs.
42-
- repo: https://github.com/asottile/blacken-docs
43-
rev: 1.16.0
44-
hooks:
45-
- id: blacken-docs
46-
additional_dependencies: [black>=23.7.0]
47-
4841
# Flake8 for linting, line-length adjusted to match Black default
4942
- repo: https://github.com/PyCQA/flake8
5043
rev: 6.1.0

pyproject.toml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ requires-python = ">=3.8"
99
description = "Module Description"
1010
readme = "README.md"
1111
license = { file = "LICENSE" }
12-
authors = [
13-
{ email = "yourname@email.invalid", name = "[YOUR NAME]" }
14-
]
12+
authors = [{ email = "yourname@email.invalid", name = "[YOUR NAME]" }]
1513
maintainers = []
1614
keywords = []
1715
classifiers = [
1816
"License :: OSI Approved :: MIT License",
1917
"Programming Language :: Python :: 3",
2018
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: Implementation :: CPython"
19+
"Programming Language :: Python :: Implementation :: CPython",
2220
]
2321
# Dynamic dependencies are loaded from requirements*.txt files
2422
dynamic = ["dependencies", "optional-dependencies"]
@@ -27,8 +25,8 @@ dynamic = ["dependencies", "optional-dependencies"]
2725
file = ["requirements/requirements.txt"]
2826

2927
[tool.setuptools.dynamic.optional-dependencies]
30-
dev = {file = ["requirements/requirements-dev.txt"]}
31-
test = {file = ["requirements/requirements-test.txt"]}
28+
dev = { file = ["requirements/requirements-dev.txt"] }
29+
test = { file = ["requirements/requirements-test.txt"] }
3230

3331
# Alertative way to specify dependencies
3432
# dependencies = []
@@ -73,25 +71,15 @@ warn_unused_ignores = false
7371

7472
[tool.coverage.run]
7573
branch = true
76-
source = [
77-
"tests",
78-
]
79-
source_pkgs = [
80-
"module_name",
81-
]
74+
source = ["tests"]
75+
source_pkgs = ["module_name"]
8276

8377
[tool.coverage.paths]
84-
source = [
85-
"src/",
86-
"*/site-packages",
87-
]
88-
test = [
89-
"tests/",
90-
"*/tests",
91-
]
78+
source = ["src/", "*/site-packages"]
79+
test = ["tests/", "*/tests"]
9280

9381
[tool.coverage.report]
94-
exclude_lines =[
82+
exclude_lines = [
9583
"pragma: no cover",
9684
"raise NotImplementedError",
9785
"if __name__ == .__main__.:",

0 commit comments

Comments
 (0)