Fix the Lint CI workflow (broken since v0.1.2)
clang-format job: the flatpak CI image has no ECM on the host, so the configure step that generated .clang-format could never run. Commit the ECM-generated .clang-format instead (it is MIT, LICENSES/MIT.txt added), drop the container, pin clang-format 22.1.8 from PyPI to match the version the tree is formatted with, and reformat the sources to match. REUSE job: add the missing CC0-1.0 license text, a copyright line for the metainfo, REUSE.toml coverage for README/CONTRIBUTING/.gitignore, and REUSE-Ignore markers around CONTRIBUTING.md's SPDX example so the parser stops reading prose as a license declaration. reuse lint now passes locally (54/54 files). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019FXfh48mASRsE1WEhy9jcM
This commit is contained in:
+13
-12
@@ -553,17 +553,10 @@ int runStages(const QString &program, const QStringList &args)
|
||||
int runHelp()
|
||||
{
|
||||
QTextStream out(stdout);
|
||||
out << u"Usage: kareer <command> [options]\n\n"_s
|
||||
<< u"Commands:\n"_s
|
||||
<< u" add Add a new job application\n"_s
|
||||
<< u" list List job applications\n"_s
|
||||
<< u" show Show one job application\n"_s
|
||||
<< u" update Update fields on an existing application\n"_s
|
||||
<< u" stage Move an application to a new stage\n"_s
|
||||
<< u" delete Delete an application\n"_s
|
||||
<< u" stats Summary statistics\n"_s
|
||||
<< u" stages List the canonical pipeline stages\n\n"_s
|
||||
<< u"Run 'kareer <command> --help' for the options of a specific command.\n"_s
|
||||
out << u"Usage: kareer <command> [options]\n\n"_s << u"Commands:\n"_s << u" add Add a new job application\n"_s
|
||||
<< u" list List job applications\n"_s << u" show Show one job application\n"_s << u" update Update fields on an existing application\n"_s
|
||||
<< u" stage Move an application to a new stage\n"_s << u" delete Delete an application\n"_s << u" stats Summary statistics\n"_s
|
||||
<< u" stages List the canonical pipeline stages\n\n"_s << u"Run 'kareer <command> --help' for the options of a specific command.\n"_s
|
||||
<< u"Running kareer with no command (or an unrecognized one) starts the GUI.\n"_s;
|
||||
return 0;
|
||||
}
|
||||
@@ -573,7 +566,15 @@ int runHelp()
|
||||
bool Cli::isSubcommand(const QString &arg)
|
||||
{
|
||||
static const QSet<QString> subcommands{
|
||||
u"add"_s, u"list"_s, u"show"_s, u"update"_s, u"stage"_s, u"delete"_s, u"stats"_s, u"stages"_s, u"help"_s,
|
||||
u"add"_s,
|
||||
u"list"_s,
|
||||
u"show"_s,
|
||||
u"update"_s,
|
||||
u"stage"_s,
|
||||
u"delete"_s,
|
||||
u"stats"_s,
|
||||
u"stages"_s,
|
||||
u"help"_s,
|
||||
};
|
||||
return subcommands.contains(arg);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,14 @@ QList<Field> fields()
|
||||
{u"company"_s, u"company"_s, QStringLiteral("Company:"), TextRow, {}, {}, 0, 0},
|
||||
{u"title"_s, u"company"_s, QStringLiteral("Job Title:"), TextRow, {}, {}, 0, 0},
|
||||
{u"location"_s, u"company"_s, QStringLiteral("Location:"), TextRow, {}, {}, 0, 0},
|
||||
{u"remoteType"_s, u"company"_s, QStringLiteral("Remote Type:"), ComboRow, {QStringLiteral("Unspecified"), QStringLiteral("Onsite"), QStringLiteral("Hybrid"), QStringLiteral("Remote")}, {}, 0, 0},
|
||||
{u"remoteType"_s,
|
||||
u"company"_s,
|
||||
QStringLiteral("Remote Type:"),
|
||||
ComboRow,
|
||||
{QStringLiteral("Unspecified"), QStringLiteral("Onsite"), QStringLiteral("Hybrid"), QStringLiteral("Remote")},
|
||||
{},
|
||||
0,
|
||||
0},
|
||||
|
||||
{u"stage"_s, u"pipeline"_s, QStringLiteral("Stage:"), ComboRow, JobStage::canonicalStages(), {}, 0, 0},
|
||||
{u"dateApplied"_s, u"pipeline"_s, QStringLiteral("Date Applied:"), DateRow, {}, {}, 0, 0},
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QList>
|
||||
|
||||
/**
|
||||
* The static structure of the job edit form: which categories exist, and
|
||||
|
||||
@@ -230,7 +230,8 @@ bool JobsDatabase::addJob(Job &job)
|
||||
job.updatedAt = now;
|
||||
|
||||
QSqlQuery query(db);
|
||||
query.prepare(uR"(
|
||||
query.prepare(
|
||||
uR"(
|
||||
INSERT INTO jobs (company, title, location, remote_type, source, url, date_applied,
|
||||
salary_min, salary_max, salary_expectation, currency, notes, contact,
|
||||
stage, created_at, updated_at)
|
||||
@@ -278,7 +279,8 @@ bool JobsDatabase::updateJob(const Job &job)
|
||||
{
|
||||
QSqlDatabase db = QSqlDatabase::database(m_connectionName);
|
||||
QSqlQuery query(db);
|
||||
query.prepare(uR"(
|
||||
query.prepare(
|
||||
uR"(
|
||||
UPDATE jobs SET company = :company, title = :title, location = :location,
|
||||
remote_type = :remote_type, source = :source, url = :url,
|
||||
date_applied = :date_applied, salary_min = :salary_min,
|
||||
|
||||
+1
-2
@@ -104,8 +104,7 @@ QColor color(const QString &stage)
|
||||
|
||||
bool isTerminal(const QString &stage)
|
||||
{
|
||||
return stage == QLatin1String("Accepted") || stage == QLatin1String("Rejected") || stage == QLatin1String("Withdrawn")
|
||||
|| stage == QLatin1String("Ghosted");
|
||||
return stage == QLatin1String("Accepted") || stage == QLatin1String("Rejected") || stage == QLatin1String("Withdrawn") || stage == QLatin1String("Ghosted");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -344,8 +344,8 @@ void SankeyModel::relayout(qreal width, qreal height, qreal nodeWidth, qreal pad
|
||||
const qreal x1 = toNode.x;
|
||||
const qreal midX = (x0 + x1) / 2.0;
|
||||
|
||||
const QString path = u"M"_s + point(x0, y0Top) + u" C"_s + point(midX, y0Top) + u" "_s + point(midX, y1Top) + u" "_s + point(x1, y1Top)
|
||||
+ u" L"_s + point(x1, y1Bottom) + u" C"_s + point(midX, y1Bottom) + u" "_s + point(midX, y0Bottom) + u" "_s + point(x0, y0Bottom) + u" Z"_s;
|
||||
const QString path = u"M"_s + point(x0, y0Top) + u" C"_s + point(midX, y0Top) + u" "_s + point(midX, y1Top) + u" "_s + point(x1, y1Top) + u" L"_s
|
||||
+ point(x1, y1Bottom) + u" C"_s + point(midX, y1Bottom) + u" "_s + point(midX, y0Bottom) + u" "_s + point(x0, y0Bottom) + u" Z"_s;
|
||||
|
||||
QColor linkColor = JobStage::color(from);
|
||||
linkColor.setAlphaF(0.5f);
|
||||
|
||||
Reference in New Issue
Block a user