Skip to content

Commit

Permalink
Merge pull request #32 from padraic-shafer/install-extras
Browse files Browse the repository at this point in the history
Enable pre-commit and install extras
  • Loading branch information
maffettone authored Jan 13, 2024
2 parents f21d6ff + 55861a0 commit c5a89ce
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# show coverage in CI status, not as a comment.
# show coverage in CI status, not as a comment.
comment: off
coverage:
status:
Expand Down
10 changes: 5 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ characters. If the commit is related to a ticket, indicate that with
"See #3456", "See ticket 3456", "Closes #3456" or similar.
```

Describing the motivation for a change, the nature of a bug for bug fixes
or some details on what an enhancement does are also good to include in a
commit message. Messages should be understandable without looking at the code
changes.
Describing the motivation for a change, the nature of a bug for bug fixes
or some details on what an enhancement does are also good to include in a
commit message. Messages should be understandable without looking at the code
changes.

Standard acronyms to start the commit message with are:
```
Expand All @@ -64,7 +64,7 @@ REL: related to releases
* Now push to your fork
* Submit a [pull request](https://help.github.com/articles/using-pull-requests) to this branch. This is a start to the conversation.

At this point you're waiting on us. We like to at least comment on pull requests within three business days
At this point you're waiting on us. We like to at least comment on pull requests within three business days
(and, typically, one business day). We may suggest some changes or improvements or alternatives.

Hints to make the integration of your changes easy (and happen faster):
Expand Down
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/ambv/black
rev: 22.12.0
rev: 23.12.1
hooks:
- id: black
exclude: versioneer.py
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.11.2
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/kynan/nbstripout
rev: 0.3.9
rev: 0.6.1
hooks:
- id: nbstripout
1 change: 0 additions & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ Before you submit a pull request, check that it meets these guidelines:
3. The pull request should work for Python 2.7, 3.3, 3.4, 3.5 and for PyPy. Check
https://travis-ci.org/bluesky/bluesky-adaptive/pull_requests
and make sure that the tests pass for all supported Python versions.

2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following docker files are split up for the queue-server and http-server for
## To run the containers:
On a Mac, to use the display you will need to install XQuartz and allow connections from network clients.
The bash script `local_display.sh` will set up a LOCAL_DISPLAY variable of the host machine and add it to the XQuartz access control list (if needed).
The queue-monitor gui image is built on [jozo/pyqt5](https://hub.docker.com/r/jozo/pyqt5).
The queue-monitor gui image is built on [jozo/pyqt5](https://hub.docker.com/r/jozo/pyqt5).

```bash
cd docker/queue-server
Expand Down
2 changes: 1 addition & 1 deletion docker/queue-monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM jozo/pyqt5

# Upgrade pip and setuptools
RUN apt-get update \
RUN apt-get update \
&& apt-get install -y \
python3-pip \
python3-setuptools \
Expand Down
2 changes: 1 addition & 1 deletion docker/queue-monitor/local_display.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fi
if [[ "$(uname)" == "Darwin" ]]; then
xhost +"$LOCAL_DISPLAY_IP"
fi
export LOCAL_DISPLAY_IP LOCAL_DISPLAY
export LOCAL_DISPLAY_IP LOCAL_DISPLAY
2 changes: 1 addition & 1 deletion github_deploy_key_bluesky_bluesky_adaptive.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gAAAAABe9LSqREC-3LuCc4INf-GV0TTSLNuqG07IwzIXVsmvrOp5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q9JZOKTCdM2VESM9PInqrhnzub0JITNuOySQ8Wn73-cyqYYpfEo3-3PVXo5wVXOxd9LrofIZzrLyaWaAeUR7RRTrFNXxTmp7SrMrqVuLIpGkJRk1aLP1NQUr04qaxAoG_TyivlQAZB_zJCsg07RLGzeFXSEa6po1-ZuVYe0BSZojjLFJY0LliXgFQO1PBFa45wMnILTqt2VJRxKEWvgoPjScFv41ctwZb8I7DutYCK4ypPG0MSMvh9HBJfFUH-Q0MRBH9g==
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ ophyd
scipy
pre-commit
pytest-docker==1.0.1
git+https://github.com/bluesky/[email protected]#egg=databroker
databroker @ git+https://github.com/bluesky/[email protected]#egg=databroker
27 changes: 21 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import itertools as it
import sys
from os import path

Expand Down Expand Up @@ -31,19 +32,33 @@
readme = readme_file.read()


# fmt: off


def read_requirements(filename):
with open(path.join(here, filename)) as requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
requirements = [line for line in requirements_file.read().splitlines() if not line.startswith("#")]
# Parse requirements file, ignoring any empty or commented-out lines.
requirements = [
line for line in requirements_file.read().splitlines()
if not (line.startswith("#") or line.strip() == "")
]
return requirements


requirements = read_requirements("requirements.txt")
categorized_requirements = {key: read_requirements(f"requirements-{key}.txt") for key in ["agents"]}
categorized_requirements = {
key: read_requirements(f"requirements-{key}.txt")
for key in ("agents", "dev")
}

extras_require = categorized_requirements.copy()
extras_require["all"] = [
extra for extra in it.chain.from_iterable(categorized_requirements.values())
]


# fmt: on

extras_require = {}
extras_require["agents"] = categorized_requirements["agents"]
extras_require["all"] = categorized_requirements["agents"]

setup(
name="bluesky-adaptive",
Expand Down

0 comments on commit c5a89ce

Please sign in to comment.