-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MNT: Switch to ruff as main linting tool
Also switch over to isort for import order handling
- Loading branch information
1 parent
de984f9
commit f13fc99
Showing
5 changed files
with
62 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
ruff==0.7.1 | ||
|
||
flake8==5.0.4 | ||
pycodestyle==2.9.1 | ||
pyflakes==2.5.0 | ||
|
||
flake8-bugbear==22.9.23 | ||
flake8-builtins==1.5.3 | ||
flake8-comprehensions==3.10.0 | ||
flake8-copyright==0.2.3 | ||
flake8-import-order==0.18.1 | ||
flake8-mutable==1.2.0 | ||
flake8-pep3101==1.3.0 | ||
flake8-print==5.0.0 | ||
flake8-quotes==3.3.1 | ||
flake8-simplify==0.19.3 | ||
pep8-naming==0.13.2 | ||
flake8-continuation==1.0.5 | ||
flake8-isort==6.1.1 | ||
isort==5.13.2 | ||
flake8-requirements==2.2.1 | ||
|
||
flake8-rst-docstrings==0.2.7 | ||
flake8-docstrings==1.6.0 | ||
pydocstyle==6.1.1 | ||
|
||
doc8==1.0.0 | ||
restructuredtext_lint==1.4.0 | ||
restructuredtext_lint==1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,15 @@ | ||
[pycodestyle] | ||
ignore = W503 | ||
max-line-length = 95 | ||
|
||
[flake8] | ||
max-line-length = 95 | ||
application-import-names = siphon | ||
import-order-style = google | ||
copyright-check = True | ||
copyright-author = Siphon Contributors | ||
inline-quotes = single | ||
multiline-quotes = double | ||
rst-roles = class, data, doc, func, meth, mod | ||
rst-directives = plot, versionchanged | ||
docstring-convention = numpy | ||
exclude = | ||
docs | ||
build | ||
src/siphon/cdmr/ncStream_pb2.py | ||
src/siphon/cdmr/cdmrfeature_pb2.py | ||
select = A B C D E F H I M Q RST S T W B902 | ||
ignore = F405 W503 RST902 SIM | ||
per-file-ignores = examples/*.py: D T201 | ||
tutorials/*.py: D T201 | ||
|
||
[tool:pytest] | ||
norecursedirs = build docs | ||
|
||
[doc8] | ||
ignore-path = docs/build,docs/api | ||
max-line-length = 95 | ||
|
||
[bdist_wheel] | ||
# This flag says that the code is written to work on both Python 2 and 3. | ||
universal=1 | ||
|
||
[aliases] | ||
test = pytest | ||
|
||
[yapf] | ||
based_on_style = pep8 | ||
column_limit = 90 | ||
known-modules = netcdf4:[netCDF4] | ||
exclude = docs build | ||
select = E301 E302 E303 E304 E305 E306 I R | ||
ignore = F405 W503 RST902 SIM106 | ||
per-file-ignores = src/siphon/_version.py: I900 | ||
src/siphon/testing.py: I900 | ||
ci/filter_links.py: E731 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters