-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* debugging: give test name based on input folder * change LintError to typing.NamedTuple for type info * add some more test ids * update format * handle new way of dealing with multiple violations on a line * handle that comments can trigger W505. * format * update tests * handle lint errors * these aren't valid code files that can pass black * update tests * this doesn't get used like we thought it did * make spacing consistent * bump patch version * cleanup leading spaces * add test that old comment stile is removed on --aggressive
- Loading branch information
1 parent
875c8c7
commit 02a4109
Showing
26 changed files
with
262 additions
and
205 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
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 |
---|---|---|
|
@@ -3,14 +3,15 @@ name = "ni-python-styleguide" | |
# The -alpha.0 here denotes a source based version | ||
# This is removed when released through the Publish-Package.yml GitHub action | ||
# Official PyPI releases follow Major.Minor.Patch | ||
version = "0.4.0-alpha.0" | ||
version = "0.4.1-alpha.0" | ||
description = "NI's internal and external Python linter rules and plugins" | ||
authors = ["NI <[email protected]>"] | ||
readme = "README.md" # apply the repo readme to the package as well | ||
repository = "https://github.com/ni/python-styleguide" | ||
license = "MIT" | ||
include = ["ni_python_styleguide/config.toml"] | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
|
||
|
@@ -24,7 +25,6 @@ click = ">=7.1.2" | |
toml = ">=0.10.1" | ||
isort = ">=5.10" | ||
|
||
|
||
# flake8 plugins should be listed here (in alphabetical order) | ||
flake8-black = ">=0.2.1" | ||
flake8-docstrings = ">=1.5.0" | ||
|
@@ -40,29 +40,30 @@ pep8-naming = ">=0.11.1" | |
# Tooling that we're locking so our tool can run | ||
importlib-metadata = {version= "<5.0", python="<3.8"} | ||
|
||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = ">=6.0.1" | ||
pytest_click = ">=1.0.2" | ||
pytest-snapshot = ">=0.6.3" | ||
|
||
|
||
[tool.poetry.scripts] | ||
ni-python-styleguide = 'ni_python_styleguide._cli:main' | ||
|
||
|
||
[tool.black] | ||
line-length = 100 | ||
extend-exclude = ''' | ||
( | ||
/.*__snapshots/.*output\.py # exclude the simple snapshot outputs | ||
) | ||
''' | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = "--doctest-modules" | ||
norecursedirs = "*__snapshots" | ||
|
||
|
||
[tool.ni-python-styleguide] | ||
extend_exclude = "*__snapshots/*/*input.py" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" | ||
|
1 change: 0 additions & 1 deletion
1
tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/blank_file_tests/output.py
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...test_cli/acknowledge_existing_errors_test_cases__snapshots/blank_file_tests/output.py.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# noqa: D100 - Missing docstring in public module (auto-generated noqa) |
2 changes: 1 addition & 1 deletion
2
.../acknowledge_existing_errors_test_cases__snapshots/blank_file_tests/output__aggressive.py
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 +1 @@ | ||
# noqa D100: Missing docstring in public module (auto-generated noqa) | ||
# noqa: D100 - Missing docstring in public module (auto-generated noqa) |
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
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
Oops, something went wrong.