Skip to content

Commit aed8f04

Browse files
committed
pre-commit: add setup.cfg formater
1 parent afc5ae3 commit aed8f04

File tree

2 files changed

+44
-40
lines changed

2 files changed

+44
-40
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ repos:
3030
- name: check syntax with flake8
3131
id: flake8
3232

33+
- repo: https://github.com/asottile/setup-cfg-fmt
34+
rev: v2.0.0
35+
hooks:
36+
- name: format setup.cfg
37+
id: setup-cfg-fmt
38+
args: [--include-version-classifiers]
39+
3340
- repo: https://github.com/adrienverge/yamllint
3441
rev: v1.27.1
3542
hooks:

setup.cfg

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,53 @@
11
[metadata]
22
name = readchar
3-
author_email = miguelangel.garcia@gmail.com
4-
license = MIT
5-
license_files = LICENCE
63
version = attr: readchar.__version__
7-
84
description = Library to easily read single chars and key strokes
95
long_description = file: README.rst
106
long_description_content_type = text/x-rst
11-
12-
keywords =
13-
charaters
14-
keystrokes
15-
stdin
16-
command line
17-
18-
classifiers =
19-
Development Status :: 5 - Production/Stable
20-
Environment :: Console
21-
Intended Audience :: Developers
22-
License :: OSI Approved :: MIT License
23-
Operating System :: POSIX :: Linux
24-
Operating System :: Microsoft :: Windows
25-
Programming Language :: Python :: 3.6
26-
Programming Language :: Python :: 3.7
27-
Programming Language :: Python :: 3.8
28-
Programming Language :: Python :: 3.9
29-
Programming Language :: Python :: 3.10
30-
Programming Language :: Python :: Implementation :: CPython
31-
Topic :: Software Development
32-
Topic :: Software Development :: User Interfaces
33-
347
url = https://github.com/magmax/python-readchar
8+
author_email = miguelangel.garcia@gmail.com
9+
license = MIT
10+
license_file = LICENCE
11+
license_files = LICENCE
12+
classifiers =
13+
Development Status :: 5 - Production/Stable
14+
Environment :: Console
15+
Intended Audience :: Developers
16+
License :: OSI Approved :: MIT License
17+
Operating System :: Microsoft :: Windows
18+
Operating System :: POSIX :: Linux
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: 3 :: Only
21+
Programming Language :: Python :: 3.6
22+
Programming Language :: Python :: 3.7
23+
Programming Language :: Python :: 3.8
24+
Programming Language :: Python :: 3.9
25+
Programming Language :: Python :: 3.10
26+
Programming Language :: Python :: Implementation :: CPython
27+
Topic :: Software Development
28+
Topic :: Software Development :: User Interfaces
29+
keywords =
30+
charaters
31+
keystrokes
32+
stdin
33+
command line
3534
project_urls =
36-
Download = https://pypi.org/project/readchar/#files
37-
Bug Tracker = https://github.com/magmax/python-readchar/issues
38-
Source Code = https://github.com/magmax/python-readchar
39-
35+
Download = https://pypi.org/project/readchar/#files
36+
Bug Tracker = https://github.com/magmax/python-readchar/issues
37+
Source Code = https://github.com/magmax/python-readchar
4038

4139
[options]
4240
packages = find:
43-
python_requires = >=3.6
4441
install_requires =
45-
setuptools
46-
wheel
42+
setuptools
43+
wheel
44+
python_requires = >=3.6
4745
tests_require =
48-
pytest
49-
46+
pytest
5047

5148
[options.packages.find]
5249
exclude =
53-
.git/
54-
.github/
55-
.venv/
56-
tests/
50+
.git/
51+
.github/
52+
.venv/
53+
tests/

0 commit comments

Comments
 (0)