Skip to content

Commit

Permalink
fix linting and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 3, 2024
1 parent 7cadea0 commit 67c7acd
Show file tree
Hide file tree
Showing 16 changed files with 401 additions and 328 deletions.
4 changes: 1 addition & 3 deletions dls_backup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/env python3
# coding: utf8

# a wrapper script to launch dls_backup_bl with correct module name

from dls_backup_bl import BackupBeamline

if __name__ == '__main__':
if __name__ == "__main__":
BackupBeamline().main()

3 changes: 1 addition & 2 deletions dls_backup_gui.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env python3
# coding: utf8

# a wrapper script to launch dls_backup_gui with correct module name

from dls_backup_gui import dls_backup_gui

if __name__ == '__main__':
if __name__ == "__main__":
dls_backup_gui.main()
17 changes: 11 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ classifiers = [
]
description = "A backup tool for beamlines for pmacs, terminal servers, zebras"
dependencies = [
"pyqt5",
"pexpect",
"dls-pmacanalyse >=2.1.0",
"numpy",
"attrs>=19.1.0",
"cothread",
"dls-pmacanalyse >=3.0.0",
"epicscorelibs",
"gitpython",
"attrs>=19.1.0",
"urllib3==1.26.20", # pinning because we use deprecated DEFAULT_CIPHERS
"numpy",
"pyqt5",
"pexpect",
"requests",
"urllib3==1.26.20", # pinning because we use deprecated DEFAULT_CIPHERS
] # Add project dependencies here, e.g. ["click", "numpy"]
dynamic = ["version"]
license.file = "LICENSE"
Expand All @@ -39,6 +40,7 @@ dev = [
"pre-commit",
"pytest",
"pytest-cov",
"types-requests",
"ruff",
"tox-direct",
"types-mock",
Expand Down Expand Up @@ -112,6 +114,9 @@ lint.select = [
"UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up
"SLF", # self - https://docs.astral.sh/ruff/settings/#lintflake8-self
]
lint.ignore = [
"E501", # allow long lines where ruff does not reformat
]

[tool.ruff.lint.per-file-ignores]
# By default, private member access is allowed in tests
Expand Down
Loading

0 comments on commit 67c7acd

Please sign in to comment.