Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/.pre-commit-config-self-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ repos:
entry: pydoclint --config=pyproject.toml
language: system
types: [python]
exclude: "^(tests?/)"
exclude: "^(setup\\.py$|tests?/)"
34 changes: 0 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
[project]
name = "pydoclint"
version = "0.6.0"
description = "A Python docstring linter that checks arguments, returns, yields, and raises sections"
authors = [ {name = "Jian Shi"}, ]
readme = "README.md"
urls.Repository = "https://github.com/jsh9/pydoclint"
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">=3.9"
dependencies = [
"click>=8.1.0",
"docstring_parser_fork>=0.0.12",
"tomli>=2.0.1; python_version<'3.11'",
]
scripts = { pydoclint = "pydoclint.main:main" }

[project.optional-dependencies]
flake8 = ["flake8>=4"]

[project.entry-points."flake8.extension"]
DOC = "pydoclint.flake8_entry:Plugin"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
Expand All @@ -42,10 +15,3 @@ check-class-attributes = false
[tool.mypy]
strict = true
exclude = "pydoclint/utils/unparser.py"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.distutils.bdist_wheel]
universal = true
39 changes: 39 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[metadata]
name = pydoclint
version = 0.6.0
description = A Python docstring linter that checks arguments, returns, yields, and raises sections
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/jsh9/pydoclint
license = MIT
license_file = LICENSE
classifiers =
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only

[options]
packages = find:
install_requires =
click>=8.1.0
docstring_parser_fork>=0.0.12
tomli>=2.0.1; python_version<'3.11'
python_requires = >=3.9

[options.extras_require]
flake8 =
flake8>=4

[options.packages.find]
exclude =
tests*
testing*

[options.entry_points]
console_scripts =
pydoclint = pydoclint.main:main
flake8.extension =
DOC = pydoclint.flake8_entry:Plugin

[bdist_wheel]
universal = True
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from __future__ import annotations

from setuptools import setup

setup()