Skip to content

Commit

Permalink
remove flake8-pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 29, 2022
1 parent b2ce138 commit fa28697
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -28,8 +28,8 @@ jobs:
with:
path: ${{ env.pythonLocation }}
key: style-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml', '**/setup.*') }}
- run: pip install flake8-pyproject
- run: flake8p --count src
- run: pip install flake8
- run: flake8 --count src
audit:
name: Bandit security audit
runs-on: ubuntu-latest
Expand Down
18 changes: 0 additions & 18 deletions pyproject.toml
Expand Up @@ -28,9 +28,6 @@ docs = [
'stsci-rtd-theme',
'toml',
]
lint = [
'flake8-pyproject',
]
test = [
'pytest >=4.6.0',
'pytest-doctestplus',
Expand Down Expand Up @@ -62,21 +59,6 @@ zip-safe = true
[tool.setuptools.packages.find]
where = ['src']

[tool.flake8]
select = ['F', 'W', 'E101', 'E111', 'E112', 'E113', 'E401', 'E402', 'E501', 'E711', 'E722']
# We should set max line length lower eventually
max-line-length = 130
exclude = [
'docs',
'src/stpipe/extern',
]
ignore = [
'E203',
'E503',
'W504',
'W605',
]

[tool.pytest.ini_options]
minversion = 4.6
doctest_plus = true
Expand Down
10 changes: 10 additions & 0 deletions setup.cfg
@@ -0,0 +1,10 @@
# this file exists to support an editable PEP517 install and for `flake8` (https://github.com/PyCQA/flake8/issues/234)

[flake8]
select = F, W, E101, E111, E112, E113, E401, E402, E501, E711, E722
# We should set max line length to 88 eventually
max-line-length = 130
exclude =
docs,
src/stpipe/extern,
ignore = E203, W503, W504, W605
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit fa28697

Please sign in to comment.