Skip to content

Commit

Permalink
Remove test alias from setup.cfg
Browse files Browse the repository at this point in the history
Configure flake8 in pyproject.toml instead.
Flake8-pyproject is needed as flake8 does not support pyproject.toml
out of the box.
  • Loading branch information
dafeda committed Sep 12, 2023
1 parent fcfb7de commit c834d0c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ jobs:
mkdir tmp_tests
mv tests tmp_tests/tests
mv test-data tmp_tests/test-data
mv setup.cfg tmp_tests/setup.cfg
mkdir tmp_tests/.git
- name: Test docs
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ include = '(\.pyi?|\.ipynb|\.py\.j2)$'

[tool.setuptools_scm]
write_to = "src/ert/shared/version.py"

[tool.flake8]
per-file-ignores = [
# Ignore all protobuf v2 files
"*_pb2.py: E"
]
ignore = [
# whitespace before ':', solved by black:
"E203",
# line break before binary operator, solved by black:
"W503",
# The minimal set of ignores that makes flake8 pass when flake8-bugbear is installed:
"B019"
]
max-line-length = 88
16 changes: 0 additions & 16 deletions setup.cfg

This file was deleted.

1 change: 1 addition & 0 deletions style-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake-format
flake8
flake8-bugbear
flake8-simplify
Flake8-pyproject
isort
pylint
pylint-protobuf

0 comments on commit c834d0c

Please sign in to comment.