-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
184 lines (163 loc) · 5.92 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=8.0.4"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "firewheel_repo_linux"
authors = [
{ name="FIREWHEEL Developers", email="[email protected]" },
]
description = "This repository contains FIREWHEEL Model Components related to Linux and Linux specific applications."
readme = "README.rst"
dependencies = [
"firewheel",
"firewheel-repo-base",
]
requires-python = ">=3.8"
license = {text = "Apache License (2.0)"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Telecommunications Industry",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Security",
"Topic :: System :: Clustering",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Emulators",
"Topic :: System :: Networking",
"Topic :: Utilities",
]
[project.urls]
"Homepage" = "https://www.sandia.gov/emulytics"
[tool.setuptools_scm]
[project.entry-points."firewheel.mc_repo"]
repo_path = "firewheel_repo_linux:__path__"
[tool.doc8]
# Ignore line length errors. Our preferred format is to have single sentences
# on each line and to use the linewrap feature in a given text editor.
ignore = ["D001"]
[tool.ruff]
line-length = 88
indent-width = 4
# Assume Python 3.9
target-version = "py39"
extend-exclude = [
"src/firewheel_repo_linux/ubuntu/ubuntu/vm_resources",
"src/firewheel_repo_linux/ubuntu/trusty/vm_resources",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"B", # flake8-bugbear
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"S", # flake8-bandit
"BLE", # flake8-blind-except
"A", # flake8-builtins
"LOG", # flake8-logging
"G", # flake8-logging-format
"RSE", # flake8-raise
"Q", # flake8-quotes
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"PERF", # Perflint
"DOC", # pydoclint
"RUF", # Ruff-specific rules
# "RET", # flake8-return
# "UP", # pyupgrade
# "PTH", # flake8-use-pathlib
# "TD", # flake8-todos
# "SIM", # flake8-simplify
# "DTZ", # flake8-datetimez
]
# We may want to adhere to D205 and D415 in the future.
ignore = [
"D100", # Missing docstring in public module
"D105", # Missing docstring in magic method
"D104", # Missing docstring in public package
"D200", # One-line docstring should fit on one line with quotes
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D415", # First line should end with a period, question mark, or exclamation point
"S101", # Ignore assert statements
"S403", # Ignore warnings about importing pickle
"S301", # suspicious-pickle-usage
"S603", # subprocess-without-shell-equals-true
"S404", # Ignore warnings about importing subprocess
"S311", # Ignore warnings about using random
"S608", # Ignore warning about possible SQL injection. SQL is not used in FIREWHEEL.
"PLW2901", # redefined-loop-name
"RUF100", # unused-noqa
"RUF012", # mutable-class-default
"PLR0904", # too-many-public-methods
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-locals
"PLR0915", # too-many-statements
"PLR1702", # too-many-nested-blocks
"PLR0917", # too-many-positional-arguments
"PLR2004", # magic-value-comparison
"PLR6301", # no-self-use
"DOC502", # docstring-extraneous-exception -- Has lots of false positives currently
"PERF203", # try-except-in-loop
"PERF401", # manual-list-comprehension
]
preview = true
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
max-line-length = 120
[tool.ruff.lint.isort]
length-sort = true
known-first-party = ["firewheel"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-bandit]
hardcoded-tmp-directory-extend = ["/scratch"]