Skip to content

Commit

Permalink
Merge pull request #924 from CodeForPhilly/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
nlebovits authored Oct 1, 2024
2 parents 250cf3f + 034a172 commit 53b8271
Show file tree
Hide file tree
Showing 6 changed files with 285 additions and 143 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/flag-stale-prs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Flag Stale PRs
name: Flag Stale PRs and Issues

on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight
workflow_dispatch:
inputs:
branch:
description: 'The branch to run this workflow on'
required: true
default: 'main'

jobs:
stale:
Expand All @@ -14,4 +20,6 @@ jobs:
days-before-stale: 7
stale-pr-message: 'This PR has been marked as stale because it has been open for 7 days with no activity.'
stale-pr-label: 'stale'
only-labels: 'backend, frontend'
days-before-issue-stale: 30
stale-issue-message: 'This issue has been marked as stale because it has been open for 30 days with no activity.'
stale-issue-label: 'stale'
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ repos:
language: system
files: ^data/src/Pipfile$

- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.3' # or any later Vulture version
hooks:
- id: vulture
name: vulture (Dead code detection)
entry: vulture data/ --exclude=data/src/awkde
language: python
types: [python]
files: ^data/

# JavaScript hooks
- repo: local
hooks:
Expand Down
49 changes: 49 additions & 0 deletions data/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[tool.pylint]
ignore = ["awkde/"]
output-format = "colorized,parseable"

[tool.pylint.'MESSAGES CONTROL']
disable = ["all"]
enable = ["duplicate-code"]

[tool.vulture]
exclude = ["awkde/"]
make_whitelist = true
# min_confidence = 80
sort_by_size = true

[tool.mypy]
ignore_missing_imports = true
exclude = 'awkde/'

[tool.ruff]
# Exclude a variety of commonly ignored directories, plus our own
exclude = [
"awkde/",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
2 changes: 2 additions & 0 deletions data/src/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ libpysal = "*"
jenkspy = "*"
pyarrow = "*"
tqdm = "*"
vulture = "*"
pylint = "*"

[dev-packages]

Expand Down
Loading

0 comments on commit 53b8271

Please sign in to comment.