Skip to content

Commit

Permalink
Merge pull request #77 from modeseven-os-climate/update-devops-tooling
Browse files Browse the repository at this point in the history
Chore: Fix multiple linting errors
  • Loading branch information
ModeSevenIndustrialSolutions authored May 13, 2024
2 parents c6b7645 + c0f612d commit e1960ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ repos:
- repo: https://github.com/pycqa/flake8
rev: "7.0.0"
hooks:
- id: flake8
- id: flake8
# Ignore all format-related checks as Black takes care of those.
args:
- --ignore=E2, W5, F401, E401
- --select=E, W, F, N
- --max-line-length=120
additional_dependencies:
- pep8-naming

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ python tools to assist with standardized data ingestion workflows

### Install from PyPi

```python
```console
pip install osc-ingest-tools
```

Expand Down Expand Up @@ -102,24 +102,25 @@ checks.
Enabling automatic formatting via [pre-commit](https://pre-commit.com/) is
recommended:

```shell
```console
pip install black isort pre-commit
pre-commit install
```

To ensure compliance with static check tools, developers may wish to run;

```shell
```console
pip install black isort
# auto-sort imports
isort .
# auto-format code
black .
```

Code can then be tested using tox.
Code can then be tested using tox:

```shell
```console
=======
# run static checks and tests
tox
# run only tests
Expand All @@ -141,7 +142,7 @@ To release a new version of this library, authorized developers should;

E.g.,

```shell
```console
git commit -sm "Release v0.3.4"
git tag v0.3.4
git push --follow-tags
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test = ["pdm[pytest]", "pytest-cov"]
tox = ["tox", "tox-pdm>=0.5"]
docs = ["sphinx>=7.2.6", "sphinx-copybutton>=0.5.2"]
dev = ["tox>=4.11.3", "tox-pdm>=0.7.0"]
lint = ["pre-commit"]
lint = ["pre-commit", "tomli"]

[tool.pytest.ini_options]
testpaths = "tests/"
Expand Down

0 comments on commit e1960ae

Please sign in to comment.