Skip to content

Commit a305b3a

Browse files
committed
Migrate flake8 configuration to pyproject.toml
1 parent 4299a40 commit a305b3a

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ https://semver.org/spec/v2.0.0.html
6060
- Remove dependency on `unittest2`.
6161
- Upgrade lower limit for `flake8` to 3.9.
6262
- Upgrade upper limit for `flake8` to 7.3.
63+
- Include dependency on `flake8-pyproject`.
6364
- Upgrade lower limit for `astroid` to 3.0.
6465
- Upgrade upper limit for `astroid` to 3.4.
6566
- Upgrade lower limit for `pylint` to 3.0.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
flake8 >= 3.9, < 7.3
2+
flake8-pyproject >= 1.0, < 1.3
23

34
astroid >= 3.0, < 3.4
45
pylint >= 3.0, < 3.4

packages/basemap/pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ requires = [
88
]
99
build-backend = "setuptools.build_meta"
1010

11+
[tool.flake8]
12+
ignore = [
13+
"E301", # expected-blank-line-missing
14+
"E306", # no-blank-line-before-nested-def
15+
"E402", # module-import-not-at-top-file
16+
"E501", # line-too-long
17+
"E731", # used-lambda
18+
"F401", # unused-import
19+
"F403", # wildcard-import
20+
"W503", # line-break-before-binary-operator
21+
"W504", # line-break-after-binary-operator
22+
]
23+
1124
[tool.pytest.ini_options]
1225
filterwarnings = [
1326
"error",

packages/basemap/setup.cfg

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

0 commit comments

Comments
 (0)