Skip to content

Commit ee9b5df

Browse files
committed
flake8-docstrings + failing test
1 parent 75bc6c7 commit ee9b5df

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ exclude =
44
.git, __pycache__, build, dist, .eggs, .github, .local,
55
Samples, azure/functions/_thirdparty, docs/, .venv*/, .env*/, .vscode/, venv*, pyvenv*
66
max-line-length = 100
7+
extend-ignore = D401, D101, D105, D400, D205, D102, D100, D107

.pydocstyle

Lines changed: 0 additions & 3 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev = [
4040
'azure-functions-durable',
4141
'flake8~=4.0.1; python_version < "3.11"',
4242
'flake8~=7.1.1; python_version >= "3.11"',
43-
'pydocstyle'
43+
'flake8-docstrings'
4444
]
4545

4646
[tool.setuptools.packages.find]

tests/test_code_quality.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,6 @@ def test_flake8(self):
5353
raise AssertionError(
5454
f'flake8 validation failed:\n{output}') from None
5555

56-
def test_pydocs(self):
57-
try:
58-
import pydocstyle # NoQA
59-
except ImportError:
60-
raise unittest.SkipTest('pydocstyle module is missing')
61-
62-
config_path = ROOT_PATH / '.pydocstyle'
63-
if not config_path.exists():
64-
raise unittest.SkipTest('could not locate the .pydocstyle file')
65-
66-
try:
67-
subprocess.run(
68-
[sys.executable, '-m', 'pydocstyle', '--config', str(config_path),
69-
'azure/functions/decorators/function_app.py'],
70-
check=True,
71-
stdout=subprocess.PIPE,
72-
stderr=subprocess.PIPE,
73-
cwd=str(ROOT_PATH))
74-
except subprocess.CalledProcessError as ex:
75-
output = ex.output.decode()
76-
raise AssertionError(
77-
f'pydocstyle validation failed:\n{output}') from None
78-
7956
def test_library_version(self):
8057
# PEP 440 Parsing version strings with regular expressions
8158
is_valid = re.match(

0 commit comments

Comments
 (0)