Skip to content

Commit 5310cb9

Browse files
committed
define flake8 config in pyproject.toml / remove setup.py
1 parent 7620bcc commit 5310cb9

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ repos:
2020
rev: '7.2.0'
2121
hooks:
2222
- id: flake8
23+
additional_dependencies:
24+
- Flake8-pyproject
2325

2426
- repo: https://github.com/codespell-project/codespell
2527
rev: v2.4.1

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ Documentation = "https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/ompy
3232
Issues = "https://github.com/OpenModelica/OMPython/issues"
3333
"Release Notes" = "https://github.com/OpenModelica/OMPython/releases"
3434
Download = "https://pypi.org/project/OMPython/#files"
35+
36+
[tool.flake8]
37+
extend-ignore = [
38+
'E501', # line too long
39+
'E741', # ambiguous variable name 'l'
40+
]

setup.cfg

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

0 commit comments

Comments
 (0)