Skip to content

Commit

Permalink
Last pieces for new CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm committed Dec 17, 2024
1 parent 8dcbcd7 commit c4ace8c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Create venv and install dependencies
run: |
uv venv
. .venv/bin/activate
uv pip install -r requirements.txt
uv pip install pre-commit
- name: Copy pre-commit config
run: |
cp .ci-pre-commit-config.yaml .pre-commit-config.yaml
- name: Run pre-commit
run: |
. .venv/bin/activate
pre-commit run --all-files
pre-commit run --all-files
2 changes: 1 addition & 1 deletion cased/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_deployment_info():

def check_for_docker(config):
def find_dockerfile(start_path="."):
for root, dirs, files in os.walk(start_path):
for root, _, files in os.walk(start_path):
if "Dockerfile" in files:
return os.path.join(root, "Dockerfile")
return None
Expand Down
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ cased = "cased.cli:main"
[tool.ruff]
line-length = 88
target-version = "py312"

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ six==1.16.0
urllib3==2.2.3
virtualenv==20.26.6
wcwidth==0.2.13
xmod==1.8.1
xmod==1.8.1

0 comments on commit c4ace8c

Please sign in to comment.