Skip to content

Commit

Permalink
Removed flake8 dep
Browse files Browse the repository at this point in the history
  • Loading branch information
abingham committed Sep 11, 2024
1 parent aa3cb9e commit f29cc14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 60 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync -i https://pypi.org/simple # Ignore download URLs in uv.lock.
- name: Check syntax
run: uv run flake8 src/cosmic_ray --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check style
run: uv run flake8 src/cosmic_ray --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with ruff
run: uv run ruff src/cosmic_ray
- name: Test with pytest
run: uv run pytest tests --run-slow

Expand All @@ -46,14 +44,14 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v3
# - name: Set up Python 3.12
# uses: actions/setup-python@v4
# with:
# python-version: 3.12
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
enable-cache: true
- name: "Build distribution"
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
uv pip install build
uv run python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,14 @@ repository = "https://github.com/sixty-north/cosmic-ray"

[tool.uv]
dev-dependencies = [
"bump-my-version",
"hypothesis",
"nox",
"pytest",
"pytest-mock",
"ruff",
"bump-my-version",
"nox",
"sphinx",
"sphinx-rtd-theme",
"flake8",
]

[tool.setuptools.packages.find]
Expand All @@ -97,8 +96,5 @@ tag_message = "Bump version: {current_version} → {new_version}"
[[tool.bumpversion.files]]
filename = "src/cosmic_ray/version.py"

[tool.flake8]
max-line-length = 120

[tool.ruff]
line-length = 120
43 changes: 0 additions & 43 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f29cc14

Please sign in to comment.