Skip to content

Commit 54c368b

Browse files
authored
Migrate to pyproject.toml (#214)
1 parent 2e8af22 commit 54c368b

File tree

4 files changed

+35
-45
lines changed

4 files changed

+35
-45
lines changed

.github/.pre-commit-config-self-check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ repos:
99
entry: pydoclint --config=pyproject.toml
1010
language: system
1111
types: [python]
12-
exclude: "^(setup\\.py$|tests?/)"
12+
exclude: "^(tests?/)"

pyproject.toml

+34
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
[project]
2+
name = "pydoclint"
3+
version = "0.6.0"
4+
description = "A Python docstring linter that checks arguments, returns, yields, and raises sections"
5+
authors = [ {name = "Jian Shi"}, ]
6+
readme = "README.md"
7+
urls.Repository = "https://github.com/jsh9/pydoclint"
8+
license = { file = "LICENSE" }
9+
classifiers = [
10+
"License :: OSI Approved :: MIT License",
11+
"Programming Language :: Python :: 3",
12+
"Programming Language :: Python :: 3 :: Only",
13+
]
14+
requires-python = ">=3.9"
15+
dependencies = [
16+
"click>=8.1.0",
17+
"docstring_parser_fork>=0.0.12",
18+
"tomli>=2.0.1; python_version<'3.11'",
19+
]
20+
scripts = { pydoclint = "pydoclint.main:main" }
21+
22+
[project.optional-dependencies]
23+
flake8 = ["flake8>=4"]
24+
25+
[project.entry-points."flake8.extension"]
26+
DOC = "pydoclint.flake8_entry:Plugin"
27+
128
[tool.isort]
229
multi_line_output = 3
330
include_trailing_comma = true
@@ -15,3 +42,10 @@ check-class-attributes = false
1542
[tool.mypy]
1643
strict = true
1744
exclude = "pydoclint/utils/unparser.py"
45+
46+
[build-system]
47+
requires = ["setuptools"]
48+
build-backend = "setuptools.build_meta"
49+
50+
[tool.distutils.bdist_wheel]
51+
universal = true

setup.cfg

-39
This file was deleted.

setup.py

-5
This file was deleted.

0 commit comments

Comments
 (0)