Skip to content

Commit 5788f4f

Browse files
committed
skpkg: linter config files; pyproject.toml
1 parent e5a2e4c commit 5788f4f

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# As of now, flake8 does not natively support configuration via pyproject.toml
2+
# https://github.com/microsoft/vscode-flake8/issues/135
13
[flake8]
24
exclude =
35
.git,

.isort.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[settings]
2+
# Keep import statement below line_length character limit
23
line_length = 115
34
multi_line_output = 3
45
include_trailing_comma = True

pyproject.toml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ build-backend = "setuptools.build_meta"
66
name = "diffpy.structure"
77
dynamic=['version', 'dependencies']
88
authors = [
9-
{ name="Simon J.L. Billinge group", email="simon.billinge@gmail.com" },
9+
{ name="Simon Billinge", email="sb2896@columbia.edu" },
1010
]
1111
maintainers = [
12-
{ name="Simon J.L. Billinge group", email="simon.billinge@gmail.com" },
12+
{ name="Simon Billinge", email="sb2896@columbia.edu" },
1313
]
1414
description = "Crystal structure container and parsers for structure formats."
15-
keywords = ['diffpy', 'crystal structure data storage CIF PDB']
15+
keywords = ['diffpy', 'crystal structure data storage', 'CIF', 'PDB']
1616
readme = "README.rst"
1717
requires-python = ">=3.11, <3.14"
1818
classifiers = [
@@ -32,13 +32,13 @@ classifiers = [
3232
'Topic :: Scientific/Engineering :: Chemistry',
3333
]
3434

35+
[project.scripts]
36+
transtru = "diffpy.structure.apps.transtru:main"
37+
3538
[project.urls]
3639
Homepage = "https://github.com/diffpy/diffpy.structure/"
3740
Issues = "https://github.com/diffpy/diffpy.structure/issues/"
3841

39-
[project.scripts]
40-
transtru = "diffpy.structure.apps.transtru:main"
41-
4242
[tool.setuptools-git-versioning]
4343
enabled = true
4444
template = "{tag}"
@@ -54,6 +54,16 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5454
[tool.setuptools.dynamic]
5555
dependencies = {file = ["requirements/pip.txt"]}
5656

57+
[tool.codespell]
58+
exclude-file = ".codespell/ignore_lines.txt"
59+
ignore-words = ".codespell/ignore_words.txt"
60+
skip = "*.cif,*.dat"
61+
62+
[tool.docformatter]
63+
recursive = true
64+
wrap-summaries = 72
65+
wrap-descriptions = 72
66+
5767
[tool.black]
5868
line-length = 115
5969
include = '\.pyi?$'

0 commit comments

Comments
 (0)