Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues appearing after deploment of PR #293 #299

Merged
merged 12 commits into from
Jan 4, 2024
36 changes: 36 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,39 @@ jobs:
- name: mypy --> Static type checking
# Configured in pyprojet.toml
run: mypy **/*.py

# Use pipreqs to check for missing dependencies
pipreqs-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install pipreqs
run: pip install pipreqs

- name: Install requirements
run: pip install -r requirements.txt

- name: Run pipreqs
run: pipreqs --savepath pipreqs.txt

- name: Compare requirements
run: |
# Extract and sort package names
awk '{print $1}' $1 | sort -u > "$1".compare
awk -F'==' '{print $1}' $2 | sort -u > "$2".compare

# Compare package lists
if cmp -s "$1".compare "$2".compare
then
echo "Requirements are the same"
exit 0
else
echo "Requirements are different"
exit 1
fi
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ruff
mypy
pipreqs
pre-commit
ruff
types-PyYAML
types-requests
types-tabulate
Expand Down
19 changes: 15 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
CouchDB
flowcell_parser @ git+https://github.com/SciLifeLab/flowcell_parser
genologics
couchdb
markdown
tabulate
google_api_python_client
httplib2
interop
Markdown
numpy
pandas
oauth2client
pandas
protobuf
psycopg2
PyYAML
Requests
scilifelab_parsers @ git+https://github.com/SciLifeLab/scilifelab_parsers
setuptools
tabulate