Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
skpkg: linter config files; pyproject.toml
  • Loading branch information
TingwenZhang committed Jun 19, 2025
commit 5788f4f55392db1756d3ada7849c321761562625
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# As of now, flake8 does not natively support configuration via pyproject.toml
# https://github.com/microsoft/vscode-flake8/issues/135
[flake8]
exclude =
.git,
Expand Down
1 change: 1 addition & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[settings]
# Keep import statement below line_length character limit
line_length = 115
multi_line_output = 3
include_trailing_comma = True
22 changes: 16 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ build-backend = "setuptools.build_meta"
name = "diffpy.structure"
dynamic=['version', 'dependencies']
authors = [
{ name="Simon J.L. Billinge group", email="simon.billinge@gmail.com" },
{ name="Simon Billinge", email="sb2896@columbia.edu" },
]
maintainers = [
{ name="Simon J.L. Billinge group", email="simon.billinge@gmail.com" },
{ name="Simon Billinge", email="sb2896@columbia.edu" },
]
description = "Crystal structure container and parsers for structure formats."
keywords = ['diffpy', 'crystal structure data storage CIF PDB']
keywords = ['diffpy', 'crystal structure data storage', 'CIF', 'PDB']
readme = "README.rst"
requires-python = ">=3.11, <3.14"
classifiers = [
Expand All @@ -32,13 +32,13 @@ classifiers = [
'Topic :: Scientific/Engineering :: Chemistry',
]

[project.scripts]
transtru = "diffpy.structure.apps.transtru:main"

[project.urls]
Homepage = "https://github.com/diffpy/diffpy.structure/"
Issues = "https://github.com/diffpy/diffpy.structure/issues/"

[project.scripts]
transtru = "diffpy.structure.apps.transtru:main"

[tool.setuptools-git-versioning]
enabled = true
template = "{tag}"
Expand All @@ -54,6 +54,16 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.dynamic]
dependencies = {file = ["requirements/pip.txt"]}

[tool.codespell]
exclude-file = ".codespell/ignore_lines.txt"
ignore-words = ".codespell/ignore_words.txt"
skip = "*.cif,*.dat"

[tool.docformatter]
recursive = true
wrap-summaries = 72
wrap-descriptions = 72

[tool.black]
line-length = 115
include = '\.pyi?$'
Expand Down