Skip to content

Commit 43ed342

Browse files
authored
fix: address linting issues with lib and readd comment
1 parent 67cb223 commit 43ed342

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/scripts/noxfile-lint.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from __future__ import annotations
1616

1717
import os
18-
import sys
18+
1919
import nox
2020

2121
# Use a stable Python version for running the style utilities
@@ -38,6 +38,20 @@ def _determine_local_import_names(start_dir: str) -> list[str]:
3838
except Exception:
3939
return []
4040

41+
# Linting with flake8.
42+
#
43+
# We ignore the following rules:
44+
# ANN101: missing type annotation for `self` in method
45+
# ANN102: missing type annotation for `cls` in method
46+
# E203: whitespace before ‘:’
47+
# E266: too many leading ‘#’ for block comment
48+
# E501: line too long
49+
# I202: Additional newline in a section of imports
50+
#
51+
# We also need to specify the rules which are ignored by default:
52+
# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121']
53+
#
54+
# For more information see: https://pypi.org/project/flake8-annotations
4155

4256
# Standardize style configuration parameters
4357
FLAKE8_COMMON_ARGS = [

0 commit comments

Comments
 (0)