Skip to content

Commit

Permalink
allow module names with capital letters in pylintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinGeens committed Jul 29, 2024
1 parent 0db9c0f commit b40bac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/.pylintrc → .github/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ inlinevar-rgx=^[a-z][a-z0-9_]*$
class-rgx=^_?[A-Z][a-zA-Z0-9]*$

# Regular expression matching correct module names
module-rgx=^(_?[a-z][a-z0-9_]*|__init__)$
# module-rgx=^(_?[a-z][a-z0-9_]*|__init__)
module-rgx=^(_?[a-zA-Z][a-zA-Z0-9_]*|__init__)$ # Allow capital letter

# Regular expression matching correct method names
method-rgx=(?x)^(?:(?P<exempt>_[a-z0-9_]+__|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass|(test|assert)_*[A-Z0-9][a-zA-Z0-9_]*|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9_]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --rcfile=./.github/workflows/.pylintrc
pylint $(git ls-files '*.py') --rcfile=./.github/.pylintrc
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ line-length = 120

[tool.black]
line-length = 120

[tool.pyright]
typeCheckingMode = "strict"

0 comments on commit b40bac5

Please sign in to comment.