Skip to content

Commit

Permalink
Merge branch 'master' into test_skip
Browse files Browse the repository at this point in the history
  • Loading branch information
hechth authored Jul 8, 2024
2 parents 829527d + 50edef2 commit c21ee93
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
post_create_environment:
- python -m pip install poetry
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with dev

sphinx:
configuration: docs/conf.py

formats:
- pdf

python:
install:
- method: pip
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description = "This package adjusts and cleans the metadata file provided by a u
authors = ["Zargham Ahmad <[email protected]>" ]
license = "MIT"
readme = "README.md"
keywords = ["metadata", "alkanes", "metabolomics"]

[tool.poetry.dependencies]
python = "^3.11"
Expand Down Expand Up @@ -46,7 +47,7 @@ line-length = 120

[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
select = [
lint.select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
Expand All @@ -60,7 +61,7 @@ select = [
# "PLW", # Warning

]
ignore = [
lint.ignore = [
'D100', # Missing module docstring
'D104', # Missing public package docstring
# The following list excludes rules irrelevant to the Google style
Expand All @@ -79,8 +80,8 @@ ignore = [
]

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
lint.fixable = ["A", "B", "C", "D", "E", "F", "I"]
lint.unfixable = []

exclude = [
".bzr",
Expand All @@ -105,11 +106,12 @@ exclude = [
".venv",
"scripts",
]
per-file-ignores = {}
lint.per-file-ignores = {}


# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.line-length = 120

[tool.ruff.lint.isort]
known-first-party = ["rcx_tk"]
Expand All @@ -126,4 +128,4 @@ filename = "pyproject.toml"
filename = "CITATION.cff"

[[tool.bumpversion.files]]
filename = "docs/conf.py"
filename = "docs/conf.py"
1 change: 0 additions & 1 deletion src/rcx_tk/process_metadata_file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import pandas as pd


def read_file(file_path: str) -> pd.DataFrame:
"""Imports the metadata file to pandas dataframe.
Expand Down

0 comments on commit c21ee93

Please sign in to comment.