Skip to content

Commit 19ac985

Browse files
committed
style: change string to pass flake8
1 parent 3ba9b97 commit 19ac985

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/tests-on-pr-no-codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
project: diffpy.srxplanar
1212
c_extension: false
1313
headless: false
14+
python_version: "3.13"
1415
run: |
1516
conda install pre-commit
1617
pre-commit run --all-files

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ maintainers = [
1414
description = "Distance Printer, calculate the inter atomic distances. Part of xPDFsuite"
1515
keywords = ['diffpy', 'pdf', 'data interpretation']
1616
readme = "README.rst"
17-
requires-python = ">=3.12, <3.15"
17+
requires-python = ">=3.11, <3.14"
1818
classifiers = [
1919
'Development Status :: 5 - Production/Stable',
2020
'Environment :: Console',
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import argparse
2+
3+
from diffpy.srxplanar.version import __version__ # noqa
4+
5+
6+
def main():
7+
parser = argparse.ArgumentParser(
8+
prog="diffpy.srxplanar",
9+
description=(
10+
"Distance Printer, calculate the inter atomic distances."
11+
" Part of xPDFsuite\n\n"
12+
"For more information, visit: "
13+
"https://github.com/diffpy/diffpy.srxplanar/"
14+
),
15+
formatter_class=argparse.RawDescriptionHelpFormatter,
16+
)
17+
18+
parser.add_argument(
19+
"--version",
20+
action="store_true",
21+
help="Show the program's version number and exit",
22+
)
23+
24+
args = parser.parse_args()
25+
26+
if args.version:
27+
print(f"diffpy.srxplanar {__version__}")
28+
else:
29+
# Default behavior when no arguments are given
30+
parser.print_help()
31+
32+
33+
if __name__ == "__main__":
34+
main()

0 commit comments

Comments
 (0)