Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Jul 1, 2024
1 parent 0e1de68 commit fb77ea2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dapper/xp_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def label_xSection(self, label, *NoneAttrs, **sub_coord):
for coord in self.coords_matching(**self.intersect_dims(sub_coord)):
entry = copy.deepcopy(self[coord])
coord = coord._replace(xSect=label)
coord = coord._replace(**{a: None for a in NoneAttrs})
coord = coord._replace(**{a: None for a in NoneAttrs}) # noqa
self[coord] = entry


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ max_line_length = 88
ignore = "W6"

[tool.flakeheaven]
exclude = [".*", "README.*", "examples/*.ipynb", "autoscaler.py"]
exclude = [".*", "README.*", "examples/*.ipynb", "autoscaler.py", "build"]
max_line_length = 88
format = "grouped" # also try "stat"
show_source = false
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
'pytest-cov', 'pytest-sugar', 'pytest-benchmark',
'pytest-clarity', 'pytest-xdist', 'pytest-timeout'],
'lint': ['flake8<5', # https://github.com/flakeheaven/flakeheaven/issues/132
'flakeheaven', 'autopep8'],
'flakeheaven', 'autopep8',
'flake8-docstrings', 'flake8-bugbear', 'flake8-comprehensions',
'flake8-isort', 'flake8-builtins', 'pep8-naming', 'flake8-commas',
],
# 'flake8-docstrings', 'flake8-bugbear', 'flake8-comprehensions'],
'build': ['twine', 'pdoc', 'jupytext'],
}
Expand Down

0 comments on commit fb77ea2

Please sign in to comment.