Skip to content

Commit 8b76c26

Browse files
committed
misc: remove unnecessary files with pyproject
1 parent 0856624 commit 8b76c26

6 files changed

Lines changed: 22 additions & 43 deletions

File tree

.github/workflows/flake8.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install flake8
31+
pip install flake8-pyproject
32+
3233
- name: Lint with flake8
3334
run: |
3435
flake8 --builtins=ArgumentError .

devito/_version.py

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

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- defaults
44
- conda-forge
55
dependencies:
6-
- python<3.13
6+
- python>=3.9,<3.13
77
- pip>=21.1.2
88
- pip:
99
- -r requirements.txt

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,21 @@ exclude = ["docs", "tests", "examples"]
6969
[tool.setuptools_scm]
7070
version_file = "devito/_version.py"
7171
fallback_version = "0+untagged"
72+
73+
[tool.flake8]
74+
max-line-length = 90
75+
ignore = [
76+
"F403","E226","E731","E275",
77+
"W503","F405","E722","E741",
78+
"W504","W605"
79+
]
80+
exclude = [ ".github" ]
81+
82+
[tool.flake8.nb]
83+
max-line-length = 90
84+
ignore = [
85+
"F403","E226","E731","E275",
86+
"W503","F405","E722","E741",
87+
"W504","W605"
88+
]
89+
exclude = [ ".github" ]

requirements-testing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pytest>=7.2,<9.0
22
pytest-runner<6.0.2
33
pytest-cov<6.1.2
4-
flake8>=2.1.0,<7.2.1
4+
flake8-pyproject>=1.2.3,<1.2.4
55
nbval<0.11.1
66
scipy<1.15.3
77
pooch<1.8.3

setup.cfg

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

0 commit comments

Comments
 (0)